$access = Yii::app()->db->createCommand()
->select('*')
->from(self::tableName())
->where('users_id=:id', array(':id'=>$userId))
->condition('users_id NOT IN' . self::tableName())
->queryRow();
$access = Yii::app()->db->createCommand()
->select('id, name, ...')
->from(self::tableName())
->where('users_id=:id', array(':id'=>$userId))
->queryRow();
$access = Yii::app()->db->createCommand()
->select('*')
->from(self::tableName())
->where('users_id=:id', array(':id'=>$userId))
->queryRow(true);
unset($access['users_id']);