query problem sold