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