I am querying data using the code below. In the database, there are duplicate entries for 'title', how can I get distinct values?
$criteria = craft()->elements->getCriteria(ElementType::Entry);
$criteria->section = 'institutions';
$query = craft()->elements->buildElementsQuery($criteria);
//$query->setDistinct('title');
$query->order('title asc');
$queryResults = $query->queryAll();
$institutions = EntryModel::populateModels($queryResults);
return $institutions;