Invalid query: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 F10YATIN<=) and (F14MADORI >= and F14MADORI <= ) and F03ENSENCODE="" orde' at line 1 Whole query: SELECT * FROM macj_internet where F02SYUBETU like '' and (F10YATIN>= and F10YATIN<=) and (F14MADORI >= and F14MADORI <= ) and F03ENSENCODE="" order by