Query failed error#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 stat.status=2 AND stat.form=3 ORDER BY stat.reg_date DESC' at line 8(SELECT fac.* FROM frame_request_facility3 fac, frame_request_facility_status stat WHERE fac.round = stat.round AND fac.userId = stat.userId AND ( fac.brand_name LIKE CONCAT('%', '','%') ) AND fac.round= AND stat.status=2 AND stat.form=3 ORDER BY stat.reg_date DESC)