diff --git a/account.php b/account.php
index 6f6ff89e545b45dbd9a588404036c650b2d98f81..f341c1d1cc0ffbbbbc82a230c7769eaa9c658cb3 100644
--- a/account.php
+++ b/account.php
@@ -388,7 +388,7 @@ function account_track_site() {
 
   $theme->header();
 
-  $nresult = db_query("SELECT n.nid, n.title, COUNT(c.cid) AS count FROM comments c LEFT JOIN node n ON n.nid = c.lid WHERE c.timestamp > ". (time() - $period) ." GROUP BY c.lid ORDER BY count DESC");
+  $nresult = db_query("SELECT n.nid, n.title, COUNT(c.cid) AS count FROM comments c LEFT JOIN node n ON n.nid = c.lid WHERE n.status = '". node_status("posted") ."' AND c.timestamp > ". (time() - $period) ." GROUP BY c.lid ORDER BY count DESC");
   while ($node = db_fetch_object($nresult)) {
     $output .= "<LI>". format_plural($node->count, "comment", "comments") ." ". t("attached to") ." '<A HREF=\"node.php?id=$node->nid\">". check_output($node->title) ."</A>':</LI>";