The Error returned was: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 '='10' AND where date >= '2018-01-01'AND date < '2018-01-01' + INTERVAL 1 MONTH A' at line 1