MySQL Query Error SELECT id FROM classy where id in (select id from classy where ispic=1 and grade= or id= or grade in (select id from classy where ispic=1 and grade= or id=) )