remove unnecessary sub-select

member_id is the primary key and therefore unique => the nested select statement is not necessary and only adds additional computational overhead on the db.
remove newline at end of file (editor added that automatically)
Merge pull request #136 from owncloud/sql-cleanup

Sql cleanup