Fixed postgres compatibility by member.status::integer for using with not in / in (statuses...)