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