fix sql
Merge branch 'master' of https://github.com/zhanliu/orchard7