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