Using Yii findByAttributes method with more than one attribute
Last updated:This is how you'd use Yii's findByAttributes()
method to perform a select using more than one attribute.
Model::model()->findByAttributes(array('name'=>$var1,'age'=>$var2))
Simple.