I have a DB with 2 columns of ID that reference the same table
How do I do 2 joins to the same table, and be able to pull the data.
Here is what I have:
$this->db->select('*'); $this->db->from('jobs'); $this->db->join('company','company.cmp_name = jobs.cmp_name'); $this->db->where('company.location', $data['location']);**strong text**
Just alias it differently:
$this->db->join('instructors as ialt', 'ialt.id = s._alt_instructor_id');