I have very simple query like this:
SELECT * FROM `all_conversations` WHERE `deleted_1` != \'1\';
And my deleted_1 be default
deleted_1
Try This.. Hope It will work for you
SELECT * FROM `all_conversations` WHERE `deleted_1` IS NOT NULL AND `deleted_1` <> 23