Nevermind, I figured it out. This is exactly what I wanted, and all in one easy query. Thank you very much.
Now that I think of it, I need to figure out one more thing.
How would I get out all permissions from the permissiontable for a certain group, but have something signaling which premissions that group already has in the access table?
Basically, I want to get all the rows from the premission table, and have some way of knowing that a row has a matching pair in the accesstable with a certain group id.
Sorry, having trouble explaning this... or I may be doing a good job and not realize it.
premissiontable
premission_id|premission_name
1|News
2|Tutorial
3|Article
accesstable
group_id|premission_id
1|1
1|3
I want to be able to get three rows out, and I need a way to know that rows 1 and 3 have been defined in accesstable for the group_id 1.
Sorry if I'm confusing. I'm trying to express what I'm trying to do but having trouble.