cannot execute query select * from tbl_news where is_deleted = 0 and status = 1 and (year(date) = '2009' and month(date) = '2') order by date desc limit -3, 3 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 '-3, 3' at line 4