left join order by codeigniter 3 code example Example: left join codeigniter $this->db->join('user_email', 'user_email.user_id = emails.id', 'left');