Corrected spelling
Apply user restrictions in query report only if rows exists
Merge pull request #838 from nabinhait/hotfix

Minor fixes