diff --git a/modules/tracker.module b/modules/tracker.module index f84dfa913e2555b9af577d49b5ced0d021a0c3c2..15c32e500dd31df422014407de718fdd5878c1c3 100644 --- a/modules/tracker.module +++ b/modules/tracker.module @@ -82,7 +82,7 @@ function tracker_page($uid = 0) { else { $sql = 'SELECT DISTINCT(n.nid), n.title, n.type, n.changed, n.uid, u.name, l.last_comment_timestamp AS last_post, l.comment_count FROM {node} n INNER JOIN {users} u ON n.uid = u.uid INNER JOIN {node_comment_statistics} l ON n.nid = l.nid WHERE n.status = 1 ORDER BY last_post DESC'; $sql = db_rewrite_sql($sql); - $sql_count = 'SELECT COUNT(DISTINCT(n.nid)) FROM {node} n WHERE n.status = 1'; + $sql_count = 'SELECT COUNT(n.nid) FROM {node} n WHERE n.status = 1'; $sql_count = db_rewrite_sql($sql_count); $result = pager_query($sql, 25, 0, $sql_count); } diff --git a/modules/tracker/tracker.module b/modules/tracker/tracker.module index f84dfa913e2555b9af577d49b5ced0d021a0c3c2..15c32e500dd31df422014407de718fdd5878c1c3 100644 --- a/modules/tracker/tracker.module +++ b/modules/tracker/tracker.module @@ -82,7 +82,7 @@ function tracker_page($uid = 0) { else { $sql = 'SELECT DISTINCT(n.nid), n.title, n.type, n.changed, n.uid, u.name, l.last_comment_timestamp AS last_post, l.comment_count FROM {node} n INNER JOIN {users} u ON n.uid = u.uid INNER JOIN {node_comment_statistics} l ON n.nid = l.nid WHERE n.status = 1 ORDER BY last_post DESC'; $sql = db_rewrite_sql($sql); - $sql_count = 'SELECT COUNT(DISTINCT(n.nid)) FROM {node} n WHERE n.status = 1'; + $sql_count = 'SELECT COUNT(n.nid) FROM {node} n WHERE n.status = 1'; $sql_count = db_rewrite_sql($sql_count); $result = pager_query($sql, 25, 0, $sql_count); }