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

fixed sql statement