Tvoja Ljekarna - Najjeftinija i najveća internet ljekarna u Hrvatskoj.

  Podrška, pon-pet 7.00-15.30023 220 000

1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'select s.specials_date_added, s.expires_date, p.products_id, p.products_imag...' at line 1

select count(p.products_id) as total select s.specials_date_added, s.expires_date, p.products_id, p.products_image, p.products_tax_class_id, p.onebyone, 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, p.products_price, pd.products_name from products p left join specials s on p.products_id = s.products_id, products_description pd where p.products_status = '1' and p.products_id = pd.products_id and pd.language_id = '1' and right(p.products_model,1) = 'G' and locate('PREMIUM', pd.products_name) > 0 and locate('mgpromopremium', pd.products_search) > 0 order by p.sortnumber, case when s.specials_new_products_price is not null and (s.expires_date is null or s.expires_date > curdate()) then 100 - s.specials_new_products_price * 100.0 / p.products_price else 0 end desc

[TEP STOP]