How to write this below query like a join condition in codeigniter
$query=$this->db->query("select TypeID,verification_type from table_verify where TypeID not in(select verificationId from table_invistigate where Id=$id)");
$result = $query->result();
return $result;