diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcontactQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcontactQuery.php index fade4ed3f..7959af516 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcontactQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcontactQuery.php @@ -121,6 +121,8 @@ class HostcontactQuery extends IdoQuery */ protected function joinHostgroups() { + $this->requireVirtualTable('hosts'); + $this->select->joinLeft( ['hgm' => $this->prefix . 'hostgroup_members'], 'hgm.host_object_id = ho.object_id',