fixed sql statement
Merge pull request #53 from kmabey/LocalDev

fixed sql statement