mysqli 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 'and a.type= group by a.id_product order by id_product limit 0,1' at line 3] in EXECUTE("select a.*, group_concat(concat(b.attribute_id, '^^', b.name, '^^', b.value, '^^', b.quantity, '^^', b.synonyms) order by position separator '||' ) as attributes from inbook_product a left outer join inbook_product_attribute b on(a.id_product=b.product_id) where a.disabled=0 and a.price>0 and a.id_product> and a.type= group by a.id_product order by id_product limit 0,1 ")