SQL error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 8

SELECT t_ID AS id, t_tk_ID, t_uj, t_cikkszam, t_nev, t_nettoar, t_afa, t_modido, t_jnev1, t_jsz1, t_me_ID1, t_jnev2, t_jsz2, t_me_ID2, t_kep, t_datum, t_aktiv, t_felh_ID, fh_nev, t_penznem FROM alk_termek INNER JOIN alk_felhasznalo ON t_felh_id=fh_id WHERE t_aktiv=1 AND fh_aktiv=1 ORDER BY t_ID DESC LIMIT