how do i ignore the backticks in codeigniter when using active records? i need to order by cases
case when roll_number is null then 1 else 0 end,
Thanks for your answers...
I figured out that in active records when using $this->db->order_by() you can't skip the backticks.
$this->db->order_by()
So ended up using $this->db->query($sql); where I assigned my normal mysql query to the $sql variable
$this->db->query($sql);
$sql