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-08-22 11:41:37' AND UpdateStatus=1 AND Season= order by Gam' at line 1