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.products_image, m.manufacturers_id, p.products_id, pd.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 products p left join manufacturers m using(manufacturers_id), products_description pd left join specials s on p.products_id = s.products_id, categories c, products_to_categories p2c where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and p.products_id = p2c.products_id and p2c.categories_id = c.categories_id and ((pd.products_name like '%low%' or p.products_model like '%low%' or m.manufacturers_name like '%low%' or pd.products_description like '%low%' or pd.products_name like '%low%') and (pd.products_name like '%fat%' or p.products_model like '%fat%' or m.manufacturers_name like '%fat%' or pd.products_description like '%fat%' or pd.products_name like '%fat%') and (pd.products_name like '%cheese%' or p.products_model like '%cheese%' or m.manufacturers_name like '%cheese%' or pd.products_description like '%cheese%' or pd.products_name like '%cheese%') ) group by p.products_id order by limit 0, 20
[TEP STOP]
|