public function distinct($flag = true)
    {
        $this->_parts[self::DISTINCT] = (bool) $flag;
        return $this;
    }
public function distinct($flag = true)
    {
        $this->_parts[self::DISTINCT] = (bool) $flag;
        return $this;
    }
public function distinct ( $ flag = true ) { $ this -> _parts [ self :: DISTINCT ] = ( bool ) $ flag ; return $ this ; }
Makes the query SELECT DISTINCT.

@param bool $flag Whether or not the SELECT is DISTINCT (default true).
@return Zend_Db_Select This Zend_Db_Select object.
Makes the query SELECT DISTINCT .