Closed (fixed)
Project:
Drupal core
Version:
4.6.10
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Apr 2006 at 12:12 UTC
Updated:
19 Jan 2007 at 20:31 UTC
I got this error when filtering content by more than 1 category on admin/node page:
user error: Not unique table/alias: 'tn'
query: SELECT n.*, u.name, u.uid FROM node n INNER JOIN term_node tn ON n.nid = tn.nid INNER JOIN term_node tn ON n.nid = tn.nid INNER JOIN users u ON n.uid = u.uid WHERE tn.tid = 1 AND tn.tid = 1 ORDER BY n.changed DESC LIMIT 0, 50 in /var/www/icon/includes/database.mysql.inc on line 66.
I think the error is in the join option for category filter. Its value is "INNER JOIN {term_node} tn ON n.nid = tn.nid".
Comments
Comment #1
Jhef.Vicedo commentedMy temporary solution for this is replacing the "tn." in:
Comment #2
Jhef.Vicedo commentedThis is on node_admin_nodes() function (building the query). Sorry I forgot to mention this above.
Comment #3
beginner commentedHello, I cannot reproduce on 4.7.
Can you still reproduce this on the latest 4.6.8?
What are the exact steps to reproduce the error?
What do you mean by " filtering content by more than 1 category"?
Comment #4
tmckeown commentedI can verify this bug on Drupal 4.6.5. I am currrently working on a patch
Comment #5
magico commented@tmckeown: anything new?
Comment #6
magico commentedComment #7
(not verified) commented