CodeIgniter Forums
Error with Join and Active Record - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Error with Join and Active Record (/showthread.php?tid=47925)



Error with Join and Active Record - El Forum - 12-28-2011

[eluser]Unknown[/eluser]
Hello

I'm trying to follow documentation for creating a join (http://ellislab.com/codeigniter/user-guide/database/active_record.html)

The doc says :
Code:
$this->db->select('*');
$this->db->from('blogs');
$this->db->join('comments', 'comments.id = blogs.id');
$query = $this->db->get();
so I have tried :
Code:
$this->db->select('marker_id, marker_name, taxon.scientific_name');
$this->db->from('marker');
$this->db->join('taxon', 'marker.taxon_id = taxon.taxon_id');
$query = $this->db->get();

but I'm facing an error :
Quote:Error Number:

SELECT "marker_id", "marker_name", "taxon"."scientific_name" FROM "marker" JOIN "taxon" ON "marker"."taxon_id" = "taxon"."taxon_id"

I should miss something, and I need your help

Thank you.

(Oracle database 11.2.0.1.0, CI 2.1.0)

Fred