Index: modules/comment/comment.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/comment/comment.module,v
retrieving revision 1.729
diff -u -p -r1.729 comment.module
--- modules/comment/comment.module	27 Jun 2009 10:13:28 -0000	1.729
+++ modules/comment/comment.module	29 Jun 2009 23:08:53 -0000
@@ -1398,7 +1398,7 @@ function comment_get_display_ordinal($ci
     // For flat comments, cid is used for ordering comments due to
     // unpredicatable behavior with timestamp, so we make the same assumption
     // here.
-    $query->condition('c1.cid', 'c2.cid', '<');
+    $query->condition('c1.cid', $cid, '<');
   }
   else {
     // For threaded comments, the c.thread column is used for ordering. We can
