Home

1064 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.categories_id = cd.categories_id AND cd.language_id' at line 5
in:
[SELECT c.categories_id, cd.categories_name, c.categories_image, c.parent_id FROM categories c, categories_description cd LEFT JOIN products_to_categories pd ON cd.categories_id=pd.categories_id WHERE c.parent_id = AND c.categories_id = cd.categories_id AND cd.language_id = 1 AND c.categories_status= '1' GROUP BY c.categories_id, cd.categories_name, c.categories_image, c.parent_id ORDER BY sort_order, cd.categories_name]