[eluser]bezking[/eluser]
[quote author="C. Jiménez" date="1312467316"]You can add FALSE to select method to prevent malfunction when doing things like that.
Code:
$this->db->select("o.cust_id, o.cust_name, o.cust_rating, CONCAT( o.cust_rating, ' - ', c.description ) as rating",FALSE)
From user_guide:
$this->db->select() accepts an optional second parameter. If you set it to FALSE, CodeIgniter will not try to protect your field or table names with backticks. This is useful if you need a compound select statement.[/quote]
Thanks. Does this stop the escape for only that line or for the entire query (this is part of a multi-line method-chained active record query)?