yii 1.x Show raw SQL query


I am new in yii and I have given a task in yii 1.x.

I have no idea about yii framework .

I need to debug some SQL so for that I need to print out Show raw SQL queries.

Please let me know in yii 1.x how we can Show raw SQL query.

Any great blogs in yii or any helpful resouces would be appriciated.

/* moved from Yii 2.0 section to Yii 1.x section */

Paste this into Google

site:yiiframework.com show raw sql