`yii\db\Query::queryScalar()` fixed to use `static` when creating subquery