$sql='UPDATE users SET last_update='.time().' where id_user='.Yii::app()->user->id;
Yii::app()->db->createCommand($sql)->execute();
$users=Users::model()->findAll([
'condition'=>'t.last_update > :time',
'params'=>[':time'=>time()-(60*60*15)], // 15 минут
]);