I need execute following sql in yii 1 application.
select user_group.user_id and user_rights.region_id
from user_rights inner join user_group on
user_rights.user_group_id=user_group.user_group_id
and to retrieve only all region_ids and paste it inside array? (e.g
$regions = array();
$regions[]='1';
$regions[]='2';
) How can I do it using foreach(or another way) in yii 1?