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