I have tables in the database that relate. A (t.a) has four rows that relate to the other four rows of (t.b) The query is performed by means of a (user.id) that exists in both tables.
Does the problem occur in the return of the query that repeats another 12 lines? How can I handle this error? Below is the code and link:
public function planstypes_head($elev_opename_id) {
$this->db->select('*');
$this->db->from('elev_plans_types');
$this->db->join('elev_share_plans', 'elev_share_plans.elev_opename_id = elev_plans_types.elev_opename_id' , 'left');
$this->db->where('elev_plans_types.elev_opename_id', $elev_opename_id);
$query = $this->db->get();
return $query->result();
}
Link: link