Verkkokauppa / Fossil

Fossil Kellot

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 'p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '2166' and' at line 1

select count(p.products_id) as total from TABLE_PRODUCT as p LEFT JOIN products_description as pd ON p.products_id=pd.products_id LEFT JOIN manufacturers as m ON p.manufacturers_id = m.manufacturers_id LEFT JOIN products_to_categories as p2c ON p.products_id=p2c.products_id where p.products_status = '1' p.manufacturers_id = m.manufacturers_id and m.manufacturers_id = '2166' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '4' and p2c.categories_id = '17335'