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