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='2f621262b53eb2a87f816ad92b297655'' at line 1