The second condition of the query in node_feed() should have a table prefix, to make it like the other parts of the query. The current query is:
$nids = db_select('node', 'n')
->fields('n', array('nid', 'created'))
->condition('n.promote', 1)
->condition('status', 1)
->orderBy('n.created', 'DESC')
->range(0, variable_get('feed_default_items', 10))
->addTag('node_access')
->execute()
->fetchCol();
To make the query look more uniform it should instead be:
$nids = db_select('node', 'n')
->fields('n', array('nid', 'created'))
->condition('n.promote', 1)
->condition('n.status', 1)
->orderBy('n.created', 'DESC')
->range(0, variable_get('feed_default_items', 10))
->addTag('node_access')
->execute()
->fetchCol();
Comments
Comment #1
damienmckennaI tagged this as Novice as it's a teeny-tiny thing that someone might like to do :)
Comment #2
droplet commentedI tagged Quick fix and wait for 2 weeks. If no one interested I will do.
Comment #3
davisbenHere's a patch!
Comment #4
droplet commentedComment #5
dries commentedCommitted to 7.x and 8.x.