Basically I work with a custom ORM framework, based on CModel and the QueryBuilder.
I want to extended the default behavior( in my case - add some columns, which all my models have ). To do that, I have to extend the function which prepares a CDbCommand instance, which is later used by the Load method. So its not possible to prepare the select first as string or array and pass it at the end only one time to $cmd->select(), because in my class I call the parent implementation which returns me the already created CDbCommand instance.
I ended up striping the slashes and preparing the query one more time and in my case it works, but its not the best solution.
If one has to do this more than one time and with a lot of columns, its a waste of valuable time.