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