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