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 'LIMIT 1' at line 4

                SELECT  ca.`id_parent` parent_id
                FROM `ps_category` ca 
                LEFT JOIN `ps_category_lang` c ON (ca.`id_category`= c.`id_category` AND c.id_lang =4) 
                WHERE ca.id_category =