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='861f6c65aa1d508c956a6665cb2b35f5'' at line 1