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='02ce854e9ee0ce7f1c9f955d98c2ab6b'' at line 1