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