|
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 p.products_image, pd.products_name, p.products_model, p.products_id, p.m' at line 1
select count(p.products_id) as total SELECT p.products_image, pd.products_name, p.products_model, p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, 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
FROM (products p
LEFT JOIN TABLE_SPECIALS_RETAIL_PRICES s using(products_id))
LEFT JOIN manufacturers m on p.manufacturers_id = m.manufacturers_id,
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 = '11' ORDER BY pd.products_name
[TEP STOP]
| | |