Using explicit object references for getSpecialSQLQuery()

Fixes #1399
Merge branch 'master' of github.com:WoltLab/WCF