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 basketSession='c0365fb16cd075faa380214b3721a5b7'' at line 1