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