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