I get the following statement when i am not logged in as the administrator account.
user warning: Column 'nid' in field list is ambiguous query: SELECT COUNT(nid) FROM signup s INNER JOIN node_access na ON na.nid = s.nid WHERE (na.grant_view >= 1 AND ((na.gid = 0 AND na.realm = 'all') OR (na.gid = 4 AND na.realm = 'content_access_author') OR (na.gid = 2 AND na.realm = 'content_access_rid') OR (na.gid = 4 AND na.realm = 'content_access_rid') OR (na.gid = 2 AND na.realm = 'term_access') OR (na.gid = 4 AND na.realm = 'term_access')))
This happens when I give a role full permissions and they visist the page admin/content/signup

I am running mysql5 don't know if this is a mysql syntactical error specific to this version or if this is across all versions of mysql.

CommentFileSizeAuthor
#1 signup_ambiguous_query.patch703 byteswestwesterson

Comments

westwesterson’s picture

StatusFileSize
new703 bytes

I was able to stop the error message with this patch.

westwesterson’s picture

Version: 5.x-2.3 » 5.x-2.x-dev

patch applied against 5.x-2.x dev

westwesterson’s picture

Status: Active » Needs review

3rd times the charm, or is it fourth?

dww’s picture

Status: Needs review » Fixed

Hrm, even installing a couple of different node access modules, I couldn't reproduce this. But, the change is a safe one, and on visual inspection, looks like it should solve the problem you reported, and you claim it works for your site. ;) So, I just committed to HEAD (5.x-2.x-dev), and backported to DRUPAL-5 and DRUPAL-4-7. Thanks for the patch!

dww’s picture

Oh, great, I even managed to reproduce it just now. ;) The trick is you need a role with 'administer all signups' and 'access administration pages', but *not* 'administer nodes'. With that, I could reproduce the bug, and verified that it went away with the revision with your patch committed. Phew. ;)

Anonymous’s picture

Status: Fixed » Closed (fixed)

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