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