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 'AND (h_megj_tol='0000-00-00' OR h_megj_tol<='2018-06-21') AND (h_megj_ig='0000-0' at line 1

SELECT COUNT(*) FROM alk_cikk WHERE h_aktiv='1' AND h_rovat= AND (h_megj_tol='0000-00-00' OR h_megj_tol<='2018-06-21') AND (h_megj_ig='0000-00-00' OR h_megj_ig>='2018-06-21') AND h_nyelv='hu' ORDER BY h_idx, h_ID DESC