I've had success with the above example - thanks Dean.
But -- I'm now wanting to exclude many lists, which makes my code longer. It seems that I'm being restricted to about 350 characters.
Is there a way I can extend the character limit for queries? Or perhaps someone can help me reduce/simplify my code? (currently this code is being cut off halfway though line 5.)
Goal with this code: Include List #2, but exclude lists #3,8,9,10. (Code works with fewer lists excluded, but I'm just being limited by characters.)
a
WHERE a.list = '2' AND cnf = '1'
AND NOT EXISTS (SELECT * FROM lm_users b WHERE a.email = b.email AND b.list = '3' AND cnf = '1')
AND NOT EXISTS (SELECT * FROM lm_users c WHERE a.email = c.email AND c.list = '8' AND cnf = '1')
AND NOT EXISTS (SELECT * FROM lm_users d WHERE a.email = d.email AND d.list = '9' AND cnf = '1')
AND NOT EXISTS (SELECT * FROM lm_users e WHERE a.email = e.email AND e.list = '10' AND cnf = '1')