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 'limit 0, 20' at line 1
select distinct p.catalog_no, m.manufacturers_id, p.products_id, itemdata.description as products_name, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from itemdata,products p left join manufacturers m using(manufacturers_id) left join specials s on p.products_id = s.products_id, products_description pd, categories c, products_to_categories p2c where p.catalog_no=itemdata.catalog_no and p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and ((lower(p.item_no) like "%n-acetyl-d-glucosamine%" or lower(pd.products_name) like "%n-acetyl-d-glucosamine%" or p.products_model like '%n-acetyl-d-glucosamine%' or m.manufacturers_name like '%n-acetyl-d-glucosamine%') ) group by p.catalog_no order by limit 0, 20
[TEP STOP]
|