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