diff --git a/html/user/top_hosts.php b/html/user/top_hosts.php
index 715166f7b9..c143c228d3 100644
--- a/html/user/top_hosts.php
+++ b/html/user/top_hosts.php
@@ -34,9 +34,8 @@ if ($sort_by == "total_credit") {
$sort_clause = "total_credit desc";
} else {
$sort_clause = "expavg_credit desc";
- $sort_by = "total_credit";
}
-$result = mysql_query("select * from host where $sort_by>0 and total_credit>300 order by $sort_clause limit $offset,$n");
+$result = mysql_query("select * from host where total_credit>300 order by $sort_clause limit $offset,$n");
top_host_table_start($sort_by);
$i = $offset+1;
while ($host = mysql_fetch_object($result)) {