1064 SQL error in product filter addon?
not sure if this is the right place to post Sql errors, but i have this one if anyone can help?
while viewing my product listing I click either 'next page' or an option from 'filter results by:' I get this error...
Code:
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 'order by' at line 7
in:
[select pd.products_name, p.products_image, p.products_quantity, p.products_id, p.products_type, p.master_categories_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, pd.products_description, IF(s.status = 1, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status =1, s.specials_new_products_price, p.products_price) as final_price, p.products_sort_order, p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from znc_products_description pd, znc_products p left join znc_manufacturers m on p.manufacturers_id = m.manufacturers_id, znc_products_to_categories p2c left join znc_specials s on p2c.products_id = s.products_id 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 = '14' order by p.products_date_added DESC order by ]
I have tried looking back at what I was doing but can't seem to find this anywhere.
Please could some one point me in some direction?
Thanks in advance,
Jay