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='34e4e916424158fd41af9afa9ca372d9'' at line 1