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