snapshot1064-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 statdate = DATE_SUB(CURRENT_DATE(), INTERVAL 2 DAY) and forsale = 'Y'' at line 1