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