Fix a bug with custom columns and ignored fields

An ignored field should also be ignored when column names are being
determined.