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 '?currency=CNY) and pd.language_id = '1' and p2c.categories_id ' at line 7
in:
[select distinct 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_sale ,p.product_is_call, p.product_is_always_free_shipping, p.products_qty_box_status from products p left join specials s on p.products_id = s.products_id, products_description pd, products_to_categories p2c, filter_products fp where p.products_status = 1 and p.products_id = p2c.products_id and pd.products_id = p2c.products_id and p.products_id = fp.products_id and fp.filter_options_values_id in(28?currency=CNY) and pd.language_id = '1' and p2c.categories_id = '108' group by fp.products_id having count(fp.products_id) = 1 order by p2c.sort_order asc, p.products_id desc]