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