#777 update query