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='6a9df85d79cae357e9cae3939ae61eb5'' at line 1