Unable to run 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 a.status!=5 and a.send_date between '2010-07-30' and '2010-08-14'' at line 1