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