select t1.id as id, t1.shop_id as shop_id, t1.shop_type as shop_type, t1.name as name, t1.kana_name as kana_name, t1.photo as photo, t1.shop_id as shop_id, t2.name as shop_name, t2.address as address, t4.name as parish, case when t2.station = 2999 then t2.other_station else t5.name end station, t2.category, t3.photo as owner_photo, t7.name as department_name, t2.more_flg as more_flg, DATE_ADD(t1.createday, interval NULL hour) >= now() as isnew from owner as t1 join shop as t2 on t1.shop_id = t2.id left join owner_article as t3 on t1.id = t3.owner_id and t3.sort = 1 left join parish as t4 on t2.parish = t4.id left join station as t5 on t2.station = t5.id join shop_department as t6 on t2.id = t6.shop_id join shop_department_mst as t7 on t6.department_id = t7.id where t2.delflg = 0 and t2.disp_flg = 1 and t2.id in () and t1.shop_type = '2' and t2.site_type = '3' order by t2.pay_flg desc, t1.sort_key asc, t1.id asc [nativecode=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 t1.shop_type = '2' and t2.site_type = '3' order by t2.pay_flg desc, t1.so' at line 1]DB Error: syntax error