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