diff --git a/tools/reporter/app/query/index.php b/tools/reporter/app/query/index.php index 0e9ceb02aca..c459f5a4d1e 100644 --- a/tools/reporter/app/query/index.php +++ b/tools/reporter/app/query/index.php @@ -273,7 +273,7 @@ else { } else { if(($key == $_GET['count']) || ($key == 'host_hostname' && $_GET['count'] == 'host_id')){ if ($key == 'host_hostname' && $_GET['count'] == 'host_id'){ - $subquery = 'host_hostname='.$row['host_hostname']; + $subquery = 'host_hostname='.$query->fields['host_hostname']; } else { $subquery = $_GET['count'].'='.$query->fields[$key];