|
|
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, pd.products_name, m.manufacturers_name,
' at line 1
select count(p.products_id) as total SELECT DISTINCT p.products_image, pd.products_name, m.manufacturers_name,
p.products_id,
p.products_image,
p.products_price,
p.products_tax_class_id,
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)) 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')
LEFT JOIN manufacturers m on p.manufacturers_id = m.manufacturers_id,
products_description pd WHERE s.status = '1'
AND p.products_status = '1'
AND pd.products_id = p.products_id
AND pd.language_id = '1'
AND p.products_group_access LIKE '%G%'
[TEP STOP]
| | | | | |