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