LoginEN
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 '-30, 30' at line 1

select distinct p.*, pd.*, m.*, 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, count(r.reviews_id) as review_number, avg(r.reviews_rating) as reviews_rating from products p left join manufacturers m on p.manufacturers_id = m.manufacturers_id left join specials s on p.products_id = s.products_id left join reviews r on p.products_id = r.products_id and r.approved = 1, products_description pd, products_to_categories p2c where p.products_status = '1' and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and pd.language_id = '1' and p2c.categories_id = '105' AND p.products_hidden='0' group by p.products_id order by pd.products_viewed desc, pd.products_name limit -30, 30

[TEP STOP]