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 c.`id_parent` != 0' at line 4

				SELECT c.*, cl.*
				FROM `ps_category` c
				LEFT JOIN `ps_category_lang` cl ON (c.`id_category` = cl.`id_category` AND `id_lang` = 3)
				WHERE c.`id_category` =  AND c.`id_parent` != 0