public function group($query)
    {
        $clause = '';

        if (!empty($query->group)) {
            $columns = AnDomainQueryHelper::parseColumns($query, $query->group);
            $clause = ' GROUP BY '.implode(' , ', $columns);
        }

        return $clause;
    }