Invalid query:
SELECT c.`category_id`,
c.`name`
FROM `pc_categories` c
LEFT JOIN `pc_parent_categories` pc
ON c.`category_id` = pc.`category_id`
WHERE c.`lang_id` =2
AND c.`lang_id` = pc.`lang_id`
AND c.`cnt_status` ='Approved'
AND c.`status` != 'TRASHED' AND c.`level` = AND pc.`parent_id` = 66 ORDER BY `sort_order`
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 pc.`parent_id` = 66 ORDER BY `sort_order`' at line 9