SELECT count(cls_id) FROM classifieds WHERE = '' AND trans_type_id=1 AND category IN(16,3,4,5,6) GROUP BY :You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '= '' AND trans_type_id=1 AND category IN(16,3,4,5,6) GROUP BY' at line 1