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