I have encountered a SQL Syntax error in the generator. When ran I presented with this error:
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 'GREATEST(p.products_date_added, p.products_last_modified, p.products_date_availa' at line 1
in:
[SELECT p.products_id, p.products_model, pd.products_name, pd.products_description, p.products_image, p.products_tax_class_id, p.products_price_sorter, p.products_epier, s.specials_new_products_price, s.expires_date GREATEST(p.products_date_added, p.products_last_modified, p.products_date_available) AS base_date, m.manufacturers_name, p.products_quantity, pt.type_handler FROM rocstr_products p LEFT JOIN rocstr_manufacturers m ON (p.manufacturers_id = m.manufacturers_id) LEFT JOIN rocstr_products_description pd ON (p.products_id = pd.products_id) LEFT JOIN rocstr_product_types pt ON (p.products_type=pt.type_id) LEFT JOIN rocstr_specials s ON (s.products_id = p.products_id) WHERE p.products_status = 1 AND p.product_is_call = 0 AND p.product_is_free = 0 AND pd.language_id = 1 ORDER BY p.products_id ASC]
I have edited the epier.php file so line 86 reads as:
PHP Code:
s.expires_date, GREATEST(p.products_date_added, p.products_last_modified, p.products_date_available)
(I put a comma between s.expires_date and GREATEST)
While that appeared to make the error go away, it does not generate any products in the feed file!
I'm stumped, any ideas?
Bookmarks