SELECT id, name, IF(status IS NOT NULL, '1','0') FROM users WHERE status IS NOT NULL