Use correct WHERE statement for exporting members

5 jobs for bugfix/member-export in 7 minutes and 54 seconds (queued for 2 seconds)