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