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 ') )and hidden=0 and lang='Greek'' at line 1
query=SELECT filters, name, supplier FROM products WHERE (cat_id='616' or prod_id in (12,58,1363117561,) )and hidden=0 and lang='Greek'