I get the following error:
user warning: Unknown column 'n.nid' in 'field list' query: SELECT DISTINCT(n.nid), title, created FROM node WHERE type = "planet" ORDER BY created DESC LIMIT 0, 10 in /home/duimenvoorjongeren.be/public_html/includes/database.mysql.inc on line 172.
php5, drupal5.3
Comments
Comment #1
Anonymous (not verified) commentedI fixed this "bug" by slightly modifying the SQL SELECTS in function planet_queue() in planet.module:
Change the statement
$result = pager_query(db_rewrite_sql('SELECT nid, title, created FROM {node} WHERE ...on lines 246 and 249 (in 1.2) into
$result = pager_query(db_rewrite_sql('SELECT nid, title, created FROM {node} n WHERESee the "n" after "{node}". Now it works.
Comment #2
jiangxijay commentedSubscribe. Similar error. Don't want to tweak module. Awaiting resolution.
Comment #3
Anonymous (not verified) commentedI switched completly to simplefeed.module. With planet.module it was annoying, that it always refreshed the feed items and didn't check if anything changed in the source item. So my RSS feeds and the "recent changes" list *always* showed updated nodes ...
Everything is working fine now.
Comment #4
swe3tdave commentedPersonnaly, i dont plan to work on the 5.x module. There is a lot of problems with it and i dont feel like fixing everything twice.