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