$us= Yii::app()->db->createCommand()
->select('default_number_of_devices')
->from('user')
->where('id=1')
->queryRow();
echo "$us";
I should have got one value instead of array type because id is unique. But $us appears to be an array instead of single number.
queryAll(). And please ask you questions in proper way with exact output and expected output.