Fixed SQL generation causing UndefineTable error
Merge pull request #74 from oasiswork/master

Fixed SQL generation causing UndefineTable error