Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
user.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jun 2007 at 07:08 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fwalch commentedHere's an example for a SQL statement that works:
SELECT DISTINCT u.uid, u.name, u.status, u.created, u.access FROM users u LEFT JOIN users_roles ur ON u.uid = ur.uid WHERE u.uid != 0 AND ur.rid = 4 AND ur.uid IN (SELECT uid FROM users_roles WHERE rid=5) ORDER BY u.created DESC LIMIT 0, 50However, I'm not sure if this is really the easiest query possible.
Comment #2
chx commentedJust multiply the ur table by itself as many times as it is needed.
Comment #3
chx commentedDebug...
Comment #4
jonathan_hunt commentedThis issue occurs on 5.7 also
Comment #5
jonathan_hunt commentedThe following code fixes it for me on 5.7
Comment #6
dpearcefl commentedDoes this issue exist in current D6?
Comment #7
dpearcefl commentedWe want your patch if it is still needed. Please resubmit it with a proper filename.
http://drupal.org/node/1054616
[description]-[issue-number]-[comment-number].patch