error: 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 onlyExamples='0' order by item_order' at line 1
select id from products_pictures where product_id= and onlyExamples='0' order by item_order