Get only distinct values for getAutoCompleteValues