Okay, I'm starting to go MySQL happy now... here is my current situation.
I have to exclude rows on a JOIN where elements of the row are reoccuring in another tables rows, meaning I have a table where I have a list of ID's
| Table ID | Name | List of IDs |
| 1 | A | 2, 3, 5 |
| 2 | B | 1, 4, 5 |
| 3 | C | 1, 4 |
| 4 | D | 2, 3, 5 |
So what I need is to search the LIST fieds for A and B
and exclude numbers that match each other, so FOR A I would pull 2, 3, 5, but for B I would only pull 1, and 4, or even if I must combine the list first...
I dont believe this is even possible without setting variables in mysql which I've seen done, I know I can do this with reg ex in php, but I rather do it in mysql to save myself from pulling alot of unneccesary information.
any ideas where to start?