I've specified an table prefix for my drupal tables and the query in the template.php does not use this.

Comments

XiaN Vizjereij’s picture

Title: The node revisions table does not use db-prefix » The query on the node revisions table does not use db-prefix
XiaN Vizjereij’s picture

And shouldn't db_query_range be used for limit queries?

zyxware’s picture

Status: Active » Fixed

I have fixed this issue in the latest dev version. Can you please try downloading that and check again.

Thanks
Dileep Kumar

XiaN Vizjereij’s picture

In template.php

37 $sql="SELECT node.nid AS nid,
38 node.title AS node_title,
39 node_revisions.body AS node_revisions_body,
40 node_revisions.format AS node_revisions_format,
41 node.created AS node_created
42 FROM {node}
43 LEFT JOIN {node_revisions} node_revisions ON node.vid = node_revisions.vid
44 ORDER BY node_created DESC ";

42 FROM {node}

should be

42 FROM {node} node

Else you get "node.nid unknown" errors.

zyxware’s picture

Status: Fixed » Active

I have made the relevant changes in the dev version again. Can you please let me know if you see any other issue.

zyxware’s picture

Status: Active » Fixed

I have fixed this issue in the latest dev version. Can you please try downloading that and check again.

Thanks
Dileep Kumar

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.