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 20th 2019f February 2019 10:36:44 PM