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 '-0,' at line 11
in:
[SELECT p.products_id, p.products_carrot,p.products_type,pd.products_description, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id FROM categories_description cd, products p LEFT JOIN manufacturers m ON (p.manufacturers_id = m.manufacturers_id), products_description pd, products_to_categories p2c INNER JOIN categories c ON p2c.categories_id=c.categories_id where cd.categories_id=c.categories_id and p.products_carrot = 0 and p.products_status = 1 and c.parent_id !=833 and c.parent_id !=787 and cd.categories_id !=833 and cd.categories_id !=787 and p.manufacturers_id!=251 AND p.products_id = pd.products_id AND p.products_id= p2c.products_id AND pd.language_id = 2 and p.products_date_added >=20120122 and (p.products_date_available <=20120205 or p.products_date_available IS NULL) order by pd.products_name limit -0, ]
in:
[SELECT p.products_id, p.products_carrot,p.products_type,pd.products_description, pd.products_name, p.products_image, p.products_price, p.products_tax_class_id, p.products_date_added, m.manufacturers_name, p.products_model, p.products_quantity, p.products_weight, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status, p.master_categories_id FROM categories_description cd, products p LEFT JOIN manufacturers m ON (p.manufacturers_id = m.manufacturers_id), products_description pd, products_to_categories p2c INNER JOIN categories c ON p2c.categories_id=c.categories_id where cd.categories_id=c.categories_id and p.products_carrot = 0 and p.products_status = 1 and c.parent_id !=833 and c.parent_id !=787 and cd.categories_id !=833 and cd.categories_id !=787 and p.manufacturers_id!=251 AND p.products_id = pd.products_id AND p.products_id= p2c.products_id AND pd.language_id = 2 and p.products_date_added >=20120122 and (p.products_date_available <=20120205 or p.products_date_available IS NULL) order by pd.products_name limit -0, ]