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