Error There seems to be an error in your SQL query. The MySQL server error output below, if there is any, may also help you in diagnosing the problem ERROR: Unknown Punctuation String @ 83 STR: =< SQL: SELECT * FROM `cc_call` WHERE DATE(starttime) >= '2008-01-01' and DATE(starttime) =< '2008-01-31' and HOUR(starttime) >= '19' and HOUR(starttime) =< '07' SQL query: Documentation SELECT * FROM `cc_call` WHERE DATE(starttime) >= '2008-01-01' and DATE(starttime) =< '2008-01-31' and HOUR(starttime) >= '19' and HOUR(starttime) =< '07' MySQL said: Documentation #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 '=< '2008-01-31' and HOUR(starttime) >= '19' and HOUR(starttime) =< '07'' at line 1