Type error
Date Tuesday, December 28, 2004 - 17:18
User malfunct
Location /?q=admin/user/configure/category/1
Message user error: Unknown table 'term_node' in field list query: SELECT term_node.nid, term_node.tid FROM prog_term_node, term_data WHERE term_data.tid = term_node.tid in /home2/malfunct/public_html/programmers/includes/database.mysql.inc on line 125.
I get this error from time to time in my logs. The problem is that the prefix gets added to term_node in the FROM but not in all the reference. I think the best fix would be to set an alias for the table like:
... FROM {term_node} AS term_node, {term_data} as term_data ...
Also it seems that this query fails to prefix the term_data table.
Comments
Comment #1
pyromanfo commentedFixed in CVS
Comment #2
(not verified) commentedLooks fixed, were there any other instances of similar code in the module? I didn't have time to check through it thoroughly.
Comment #3
pyromanfo commentedSomebody noticed a bunch in another issue, but it all seems to be fixed now.
If you find another let me know, it's a simple fix.
Comment #4
(not verified) commented