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