SELECT * FROM ms_memberships WHERE status = 4 AND sent_30days = 0 AND expiration < 1529664145