SELECT local_path FROM `ps_category` c WHERE c.`is_article` = 1 AND c.`erp_path` IN(5,G,0,3,5,k,9,-) - 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 3