fix sql query by user
Merge branch 'master' of https://github.com/CE-KMITL-CLOUD-2014/Dream