diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php index 42e379e01..045682cd6 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostgroupsummaryQuery.php @@ -112,7 +112,8 @@ class HostgroupsummaryQuery extends IdoQuery ); $this->subQueries[] = $services; $this->summaryQuery = $this->db->select()->union(array($hosts, $services), Zend_Db_Select::SQL_UNION_ALL); - $this->select->from(array('statussummary' => $this->summaryQuery), array())->group('hostgroup_name'); + $this->select->from(array('statussummary' => $this->summaryQuery), array()); + $this->group('hostgroup_name'); $this->joinedVirtualTables['hoststatussummary'] = true; }