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