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