- Patch #1431452 by larowlan: 'status' in where clause is ambiguous.
authorDries
Mon, 13 Feb 2012 18:57:23 +0000 (13:57 -0500)
committerDries
Mon, 13 Feb 2012 18:57:23 +0000 (13:57 -0500)
core/modules/forum/forum.module

index b334c42..6566539 100644 (file)
@@ -779,7 +779,7 @@ function forum_forum_load($tid = NULL) {
     $query->addExpression('SUM(ncs.comment_count)', 'comment_count');
     $counts = $query
       ->fields('f', array('tid'))
-      ->condition('status', 1)
+      ->condition('n.status', 1)
       ->groupBy('tid')
       ->addTag('node_access')
       ->execute()