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