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_price <= 150) and (p.products_date_available < now() or p.produ' at line 1 select count(distinct p.products_id) as total from products p, products_description pd, products_to_categories p2c, categories c where p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and (c.parent_id = '59' or p2c.categories_id = '63' or p2c.categories_id = '61' or p2c.categories_id = '62' or p2c.categories_id = '205' or p2c.categories_id = '90' or p2c.categories_id = '173' or p2c.categories_id = '206' or p2c.categories_id = '207' ) and p.products_status = '1' and p.products_free_gift_status = '0' and p.products_third_party_status = '0' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_price >= 100.1) and p.products_price <= 150) and (p.products_date_available < now() or p.products_date_available IS NULL) [TEP STOP] |