Add DISTINCT for dropdown query

A DISTINCT is needed in case labels for dropdowns are provided from
different (imported) knowledged bases.