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 website_id = 30 AND articlemask = 2 AND post_date BETWEEN CURDATE() - INTERV' at line 1