I did this not too long ago (I hope I saved it!). It's lumpy but it works ok. Instead of doing an 'in' for the privs, alias the table for each priv and join three times (or 4 or whatever). I'll see if I can find my sql and I'll post it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.