OR works...
but I want the condition to match...
I want to select all users who match a number of conditions on this second table.
In that example, I want BOTH of the subscriber's fields (rows 1 and 2) to match 'aaa' and 'bbb' respectively... not either or... ?
table users
id, email
1, a@b.c
2, d@e.f
table fields
field_id, userid, value
1,1,'aaa'
2,1,'bbb'
1,2,'aaa'
2,2,'ccc'
so I would only want to get user 1 ebcause they amtch both 'aaa' and 'bbb', but user 2 does not...