src/SelectQuery.php
public function distinct(bool $enable = true)
    {
        $this->changed = true;
        $this->distinct = $enable;

        return $this;
    }
public function distinct(bool $enable = true)
    {
        $this->changed = true;
        $this->distinct = $enable;

        return $this;
    }
Toggle the DISTINCT flag in a SELECT query.

@param bool $enable
@return self