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