updated select statement
Merge pull request #3 from TonyAbell/master

updated select statement