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 ' p.products_price) as products_price from products p left join specials s on p.p' at line 1
select p.products_id, p.products_carrot, p.products_availability_id, p.products_image, p.products_tax_class_id, IF(s.status, s.stores_id, s.specials_new_products_price, p.products_price) as products_price from products p left join specials s on p.products_id = s.products_id and s.stores_id = '3' INNER JOIN products_to_stores p2s ON p.products_id = p2s.products_id where p2s.stores_id = 'STORES_ID' and p.products_status = '1' and p.products_carrot = '0' and TO_DAYS(NOW()) - TO_DAYS(p.products_date_added) < '30' order by p.products_date_added desc limit 6
[TEP STOP]
|