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