diff --git a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php index d649f2739..6fae0c658 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido/Query/HostcommentQuery.php @@ -142,7 +142,7 @@ class HostcommentQuery extends IdoQuery { $this->select->joinLeft( array('s' => $this->prefix . 'services'), - 's.host_object_id = h.host_object_id', + 's.host_object_id = ho.object_id', array() )->joinLeft( array('so' => $this->prefix . 'objects'),