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