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