MySQL ERROR:

Error Number: 1064

Description: 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 1

Query: SELECT A1.cat_name as cat_name, A1.cat_id as cat_id FROM exp_categories A1 WHERE A1.cat_id =