|
|
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 'SELECT DISTINCT p.products_image, p.products_model, pd.products_name,
' at line 1 select count(p.products_id) as total SELECT DISTINCT p.products_image, p.products_model, pd.products_name, p.products_id, p.products_image , p.products_price, p.products_tax_class_id, IF(s.status, IF(ISNULL(pg.customers_group_price), LEAST(s.specials_new_products_price, p.products_price), LEAST(pg.customers_group_price, s.specials_new_products_price)), IF(ISNULL(pg.customers_group_price), p.products_price, LEAST(pg.customers_group_price, p.products_price))) as final_price FROM (products p LEFT JOIN specials s using(products_id) ) LEFT JOIN products_groups pg on p.products_id = pg.products_id and pg.customers_group_id = 'G', products_description pd, featured f WHERE p.products_status = '1' AND f.status = '1' AND p.products_id = f.products_id AND pd.products_id = p.products_id AND pd.language_id = '1' AND p.products_group_access LIKE '%G%' [TEP STOP] |