@classmethod<EOL><INDENT>def search(cls, query, q):<DEDENT>
query = query.join(User).filter(<EOL>User.email.like('<STR_LIT>'.format(q)),<EOL>)<EOL>return query<EOL>
Modify query as so include only specific members.

        :param query: Query object.
        :param str q: Search string.
        :returs: Query object.