Connect Error in SELECT COUNT(*) from oven.pics left join oven.projects on projects.ID=oven.pics.project where pics.text like '%except%' and bb=1 and selected = 1 and projects.ID=61∨d=1 order by projects.run,pics.ord
: 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 'd=1 order by projects.run,pics.ord' at line 1