Fix sql error searching members

Fix sql error searching members
Merge pull request #1 from mjim79/master

Fix sql error searching members