title: Print out a SQL single query (Yii 1.x)
body: <p>I have a massive query that is generated using CDbCriteria as shown below:-</p>
  
  <pre><code>$schema = Yii::app()-&gt;db-&gt;schema;
  $builder = $schema-&gt;commandBuilder;
  
  // how to echo out this query?
  $command = $builder-&gt;createFindCommand($schema-&gt;getTable('myuser'), $criteria);
  $results = $command-&gt;queryAll();
  </code></pre>
  
  <p>I know I can use the 'logging' feature of Yii to view the query, is it possible to just echo out this single query (as opposed to having Yii show me tons of other queries that are being run on the page).</p>