Index: modules/watchdog/watchdog.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/watchdog/watchdog.module,v
retrieving revision 1.170
diff -u -p -r1.170 watchdog.module
--- modules/watchdog/watchdog.module	15 Feb 2007 11:40:18 -0000	1.170
+++ modules/watchdog/watchdog.module	17 Feb 2007 22:05:34 -0000
@@ -172,7 +172,7 @@ function watchdog_top($type) {
     array('data' => t('Message'), 'field' => 'message')
   );
 
-  $result = pager_query("SELECT COUNT(wid) AS count, message FROM {watchdog} WHERE type = '%s' GROUP BY message ". tablesort_sql($header), 30, 0, "SELECT COUNT(DISTINCT(message)) FROM {watchdog} WHERE type = '%s'", $type);
+  $result = pager_query("SELECT COUNT(wid) AS count, message FROM {watchdog} WHERE type = '%s' GROUP BY message ". tablesort_sql($header), 30, 0, "SELECT COUNT(*) FROM {watchdog} WHERE type = '%s' GROUP BY message", $type);
 
   $rows = array();
   while ($watchdog = db_fetch_object($result)) {
