Error: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 fld_status='1' and fld_advdays <= datediff('2017-11-27','2017-11-24') orde' at line 1