Add needed ON clause when getting names for the display filter.