Index: filters/duplicate/duplicate.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/spam/filters/duplicate/Attic/duplicate.module,v
retrieving revision 1.1.2.9
diff -b -u -p -r1.1.2.9 duplicate.module
--- filters/duplicate/duplicate.module	19 Sep 2008 17:56:25 -0000	1.1.2.9
+++ filters/duplicate/duplicate.module	27 Sep 2008 04:16:36 -0000
@@ -376,7 +376,7 @@ function spam_logs_blocked_ip() {
   // This unfortunately has to be SQL because the pager module can't be told
   // how many rows we've got (so we can't do our own processing in PHP and
   // still get paging to work properly).
-  $sql="SELECT * FROM (SELECT DISTINCT x.hostname, x.timestamp, COUNT(x.hostname) AS count FROM (SELECT timestamp, hostname FROM {spam_tracker} WHERE score > %d ORDER BY timestamp DESC) AS x GROUP BY x.hostname) AS y WHERE y.count>=%d";
+  $sql="SELECT * FROM (SELECT DISTINCT x.hostname, x.timestamp, COUNT(x.hostname) AS count FROM (SELECT timestamp, hostname FROM {spam_tracker} WHERE score > %d ORDER BY timestamp DESC) AS x GROUP BY hostname, timestamp) AS y WHERE y.count>=%d";
   $arguments=array(variable_get('spam_threshold', SPAM_DEFAULT_THRESHOLD), variable_get('spam_blacklist_ip', DUPLICATE_DEFAULT_BLACKLIST));
 
   $count_sql=preg_replace('/^SELECT \* /','SELECT count(hostname) ',$sql);
