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 'rdate > 2011-03-22 order by rdate' at line 1You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'rdate < 2011-03-22 order by rdate desc' at line 1