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