select * from school_area inner join (select * from school where sc_address like 'Ķ%') s1 on sa_school_id = s1.sc_id where concat(sa_town, sa_block) like 'ë%' group by sa_school_idGot error 28 from storage engine