title: YII how to get number of rows affacted using queryRow Function
body: <p>In YII, to get single row i m using queryRow function</p>
  
  <pre><code>$SQL = //SQL QUERY
  
  $data = Yii::app()-&gt;db-&gt;createCommand($SQL);
  $result = $data-&gt;queryRow();
  
  print_r(count($result));
  </code></pre>
  
  <p>print_r always shows 1 even if no data-set returned by query. i want if no data-set is returned it should show 0. so can call some other function</p>
  
  <p>what is the issue ?</p>