I get a warning when I go to http://example.com/blogs/username: user warning: Column 'NID' field list is ambiguous in query: SELECT DISTINCT NID, created FROM node n INNER JOIN ON node_access na.nid na = n . NID WHERE (na.grant_view> = 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 0 AND na.realm = 'content_access_author') OR (na.gid = 1 AND na.realm = 'content_access_rid') OR (na.gid = 1 AND na.realm = 'forum_access'))) AND ((n.moderate! = 1)) AND (type = 'blog' AND status <> 0 AND uid = 283) ORDER BY created DESC in / home / policy / public_html / sites / all / modules / advanced_blog / advanced_blog.module on line 333
This warning is not only to site administrators, site administrators seem non-users. What could be the reason?
Comments
Comment #1
Gökhan DAĞ commented6.x-1.0-beta1 version of the same problems in the module and it seems that the fix is not available.
Shame :(
Comment #2
svendecabooterComment #3
CobraMP commentedyep just got it here http://siofan.com/blog/fairy-godmother
Comment #4
Gökhan DAĞ commentedYou can get information about improvements in this regard are we?
Respects..
Comment #5
jaypanChange line of advanced_blog.module 332 from this:
$query = "SELECT nid, created FROM {node} n WHERE type = 'blog' AND status <> 0 AND uid = %d ORDER BY created DESC";to this:
$query = "SELECT n.nid, n.created FROM {node} n WHERE n.type = 'blog' AND n.status <> 0 AND n.uid = %d ORDER BY n.created DESC";Comment #6
svendecabooterWell spotted.
Fixed in HEAD.