function check_group ( $email, $table, $left) { $this->db->select($table . '.title'); $this->db->from($table); $this->db->join($left, $table .'.id = '.$left.'.group', 'left'); $this->db->where($left .'.email', $email); $i = $this->db->get(); return $i->row()->title; }