fix sql query
Merge pull request #2746 from AlexGx/doc-small-fix

fix sql query