title: Yii CActiveDataProvider Join and select from joined table
body: <p>I have the following example code:</p>
  
  <pre><code>                $dataProvider = new CActiveDataProvider('firstTable', 
                      array('criteria' =&gt; array(
                          'select' =&gt; 't.firstfield,secondTable.secondfield',
                          'join' =&gt; 'join secondTable on secondTable.id=t.secondTable_id',
                      ),
                      'pagination' =&gt; array(
                          'pageSize' =&gt; 10,
                      ),
                  ));
                  $results=$dataProvider-&gt;getData();
  </code></pre>
  
  <p>After running the code above, firstField (from the model table - firstTable) is available in the object, but secondField (from the joined table - secondTable) is not.</p>
  
  <p>Can anyone provide assistance on what is wrong with the code or why the "select" option is not picking up the secondField?</p>