Closed (fixed)
Project:
Taxonomy Menu
Version:
6.x-2.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Apr 2009 at 13:30 UTC
Updated:
22 Apr 2009 at 22:30 UTC
hello when saving a node i get an error:
user warning: Column 'tid' in field list is ambiguous query: SELECT tid FROM term_node LEFT JOIN term_data tac_td ON t.tid = tac_td.tid WHERE (t.tid IN (0, 14) OR tac_td.vid NOT IN (4)) AND ( nid = 0) in /.../htdocs/sites/all/modules/taxonomy_menu/taxonomy_menu.database.inc on line 78.
function _taxonomy_menu_get_node_terms($nid) {
$output = array();
$result = db_query(db_rewrite_sql('SELECT tid FROM {term_node} WHERE nid = %d', 't', 'tid'), $nid);
should be
$result = db_query(db_rewrite_sql('SELECT t.tid FROM {term_node} WHERE nid = %d', 't', 'tid'), $nid);
Comments
Comment #1
gunzip commentedsorry:
Comment #2
indytechcook commentedThanks gunzip. I'll patch this tonight along with the other db_rewrite_sql statements.
Comment #3
indytechcook commentedI committed this fix to DEV. The package should be available within the next 12 hours. Please test and let me know.
Thanks,
Neil