Closed (fixed)
Project:
Week Field
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jun 2006 at 03:18 UTC
Updated:
1 Jul 2006 at 12:15 UTC
Jump to comment: Most recent file
I upgraded to 4.7, php5 and mysql5, and I've been getting these errors:
Unknown column 'node.nid' in 'on clause' query: SELECT YEARWEEK(FROM_UNIXTIME(changed),0) AS weekno FROM node n INNER JOIN node_access na ON na.nid = node.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 1 AND na.realm = 'node_privacy_byrole_role') OR (na.gid = 0 AND na.realm = 'node_privacy_byrole_user'))) AND n.type IN ('image','page','poll','story') GROUP BY weekno ORDER BY weekno DESC LIMIT 11 in /var/www/therailfan/includes/database.mysql.inc on line 120.
There might be a similar discussion of the problem here: http://drupal.org/node/40763
Any thoughts? Thanks!
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | WEEK_REWRITESQL.patch | 1.37 KB | Prometheus6 |
Comments
Comment #1
Prometheus6 commentedWell, this case wasn't quite that hairy but I believe I abused db_rewrite_sql() too.
The change was just committed. For folks that want to edit by hand, find the _weekly_contentQuery() function and replace this
with this
Comment #2
Prometheus6 commented