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