diff -r 4042c4dd5ba4 -r 1c7f59df9474 includes/stats.php --- a/includes/stats.php Tue Aug 28 19:00:20 2007 -0400 +++ b/includes/stats.php Wed Aug 29 18:23:37 2007 -0400 @@ -60,7 +60,7 @@ } $data = array(); - $q = $db->sql_query('SELECT COUNT(hit_id) AS num_hits, page_id, namespace FROM hits GROUP BY page_id, namespace ORDER BY num_hits DESC LIMIT ' . $num . ';'); + $q = $db->sql_query('SELECT COUNT(hit_id) AS num_hits, page_id, namespace FROM '.table_prefix.'hits GROUP BY page_id, namespace ORDER BY num_hits DESC LIMIT ' . $num . ';'); while ( $row = $db->fetchrow() ) {