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