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 pc.categories_id=c.categories_id' at line 1
SELECT c.categories_id FROM categories c, products_to_categories pc WHERE pc.products_id= AND pc.categories_id=c.categories_id
[TEP STOP]