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