From 98e504e8f4af3b62d1ae76c7a5a73e1493e11bcc Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Tue, 30 Jun 2009 09:57:57 +0000 Subject: [PATCH] - Patch #26966 by catch: fixed query. --- modules/comment/comment.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/comment/comment.module b/modules/comment/comment.module index e4d6e43b629..28815fafe28 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -1398,7 +1398,7 @@ function comment_get_display_ordinal($cid, $node_type) { // 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