Конструкции с IN

CDbCriteria

$criteria = new CDbCriteria(); $criteria->addInCondition('id', $usersIds); Users::model()->findAll($criteria);

findAllByAttributes

Users::model()->findAllByAttributes(array('id' => $userIds))