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: Wednesday 19th 2018f December 2018 04:02:03 AM