ABS+ 3D Filaments

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 p.products_id = pc.products_id AND p.products_status = 1 ORDER BY cat_repre' at line 1
in:
[SELECT products_image FROM products p, products_to_categories pc WHERE pc.categories_id = AND p.products_id = pc.products_id AND p.products_status = 1 ORDER BY cat_representing_image DESC, RAND() LIMIT 1]