Basket 0 items | 0,00
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 IN (SELECT products_id_relation FROM products p2 WHERE' at line 8
[select count(distinct p.products_id) as total from products_description pd, products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id, products_to_categories p2c left join specials s on p2c.products_id = s.products_id INNER JOIN categories c USING (categories_id) INNER JOIN categories_description cd USING (categories_id) where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and p.products_id_relation = '' and pd.language_id = '1' and p2c.categories_id IN AND p.products_id IN (SELECT products_id_relation FROM products p2 WHERE p2.products_id_relation=p.products_id AND p2.products_status=1) ]