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='816b93446d16958a5ce8a5fdeaeb2795'' at line 1