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