Commit 04b3e8d0 authored by Dries's avatar Dries

- Patch #299176 by Dave Reid: fixed broken query in forum block.

parent 3fbda230
......@@ -504,7 +504,7 @@ function forum_block_view($delta = '') {
$title = t('Active forum topics');
$query = db_select('node', 'n');
$tn_alias = $query->join('taxonomy_term_node', 'tn', 'tn.vid = n.vid');
$td_alias = $query->join('taxonomy_term_data', 'td', 'tn.tid = tn.tid');
$td_alias = $query->join('taxonomy_term_data', 'td', 'td.tid = tn.tid');
$l_alias = $query->join('node_comment_statistics', 'l', 'n.nid = l.nid');
$query->addField('n', 'nid', 'nid');
$query->addField('n', 'title', 'title');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment