I want to select data from my database table with join query, but my it doesn\'t work.
My query:
$this->db->select(); $this->db->from(\'w
You don't need to join same table twice. But just to extend ON clause:
ON
$this->db->select(); $this->db->from('we'); $this->db->join('schedule', 'schedule.itemid = we.cid AND schedule.itemtype = \'testitem\''); $this->db->where('we.isActive','Y');