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