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