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='0399452bd8bf135e810fae9eed70e9be'' at line 1