I've seen many threads discussing "user warning: Unknown column 'n.nid' " errors stemming from problems in the SQL queries made by some modules, apparently under MySQL 5.0. Some existing threads:
http://drupal.org/node/58502 http://drupal.org/node/47741 http://drupal.org/node/69108 http://drupal.org/node/43735 http://drupal.org/node/40623
I'm getting the same type of error after installing the i18n package for internationalization, which includes modules called i18n.module and translation.module.
http://drupal.org/project/i18n
Disabling those modules eliminates the error.
My question: Has anyone else experienced the "Unknown column 'n.nid' " problem specifically following installation of i18n, and if so, did you find a fix?
More background, starting with my error message:
user warning: Unknown column 'n.nid' in 'on clause' query: SELECT n.nid, n.title, n.uid, n.changed, l.last_comment_timestamp, GREATEST(n.changed, l.last_comment_timestamp) AS last_change, l.comment_count FROM node n, node_comment_statistics l LEFT JOIN i18n_node i18n ON n.nid = i18n.nid WHERE (i18n.language ='en' OR i18n.language ='' OR i18n.language IS NULL) AND n.nid = l.nid AND n.status = 1 AND n.type IN ('blog', 'book', 'amazon', 'amazon_node', 'tasks', 'forum', 'page', 'poll', 'story') AND 1=1 ORDER BY last_change DESC LIMIT 0, 3 in /Library/WebServer/Documents/includes/database.mysql.inc on line 120.