TTH Database Error

mySQL query error: SELECT * FROM catpd WHERE active='1' AND id_catpd= AND id_catpd<>2 AND id_catpd<>217 mySQL 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 id_catpd<>2 AND id_catpd<>217' at line 1 mySQL error code: Date: Monday 25th 2017f September 2017 12:39:27 AM