fix a DboDataSource buildJoinStatement bug that table prefix is appended to subquery
apply code convention
Merge pull request #1103 from perrywky/master

fix a DboDataSource buildJoinStatement bug that table prefix is appended to subquery

Fixes #3579