0
select name, value from config where parent_id in (select id from config where
name = 'Yii');
select name, value from config where parent_id in (select id from config where
name = 'Yii');
我不知道你的條件,但嘗試在條件字段添加子查詢
$criteria = new CDbCriteria();
$criteria->select ='name, value';
$criteria->addCondition(select id from config where name = 'Yii');