Adjusted createQuery() override to latest yii changes

signature has changed.