You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and GameTime < '2019-06-26 00:15:16' AND UpdateStatus=1 AND Season= order by Gam' at line 1