Skip to content

Conversation

@henrrrik
Copy link

@henrrrik henrrrik commented Dec 2, 2010

Hi!

I had problems getting the node index working. Found two issues in _node_resource_index():

  1. The $fields variable is empty instead of '*'. Added a check for this as suggested here: http://drupal.org/node/985312.
  2. The WHERE causes uses an n alias for the node table column, but it's not defined so it fails.

Here's the error:

Unknown column 'n.language' in 'where clause'; query: SELECT * FROM node WHERE (n.language ='sv' OR n.language ='' OR n.language IS NULL) ORDER BY sticky DESC, created DESC LIMIT 0,20

Cheers,

Henrik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant