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 '' at line 1
in:
[select p.products_id,p.products_image,pd.products_name from products p left join products_to_categories p2c on(p.products_id=p2c.products_id), products_description pd where p.`products_id`=pd.`products_id` AND p.`products_status`=1 AND p2c.categories_id = ]