The best way to do this in MySQL, I think. You can change the table layout of your users with a different column, the BIT column, for unsubscribed. Even better: add a DATETIME column for "date deleted" with a default value of NULL .
If a BIT column is used, your query will look something like this:
SELECT * FROM `users` WHERE `unsubscribed` <> 0b1;
If you use the DATETIME column, your query will look something like this:
SELECT * FROM `users` WHERE `date_unsubscribed` IS NULL;
Daniel Trebbien
source share