BuddyPress Global Search – search members class
Insures that only one instance of Class exists in memory at any one time. Also prevents needing to define globals all over the place.
A dummy constructor to prevent this class from being loaded more than once.
Generates sql for members search.
What fields members should be searched on? Prints options to search through username, email, nicename/displayname.