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='0845a80d03e3a87a6b90121e74dbfdfb'' at line 1