Something like this should work:
$this->db->join('B', 'aCol = bCol AND bOtherCol = 0'); $this->db->get('A');
Optionally, a third argument can be specified for the join method to indicate whether a left or right join should be performed. For example, to perform a left join:
$this->db->join('B', 'aCol = bCol AND bOtherCol = 0', 'left');
Ton van den heuvel
source share