I\'m new to building databases and I\'m trying to do a JOIN based on a having three database tables.
Table A = ID, Name, etc
Table B = ID, Name, etc
Table C
$this->db->select('*');
$this->db->from('blogs');
$this->db->join('comments', 'comments.id = blogs.id');
$this->db->join('authors', 'authors.id = comments.author_id');
hopefully you get my example.
Just add another $this->db->join();
For complex queries you might be better off looking at an ORM such as doctrine