Changing from raw sql to codeigniters active class

TimmyGroves

New Member
I have this\[code\]SELECT *FROM categoryTableWHERE categoryId NOTIN (SELECT categoryIdFROM userMenuTableWHERE cookieId = 'bang4b544417a41b6')\[/code\]but I would like it use codeigniters active record class so using\[code\]$this->db\[/code\]syntax, I was hoping someone would help me convert this?
 
Back
Top