[eluser]umbungo[/eluser]
How can i re use an active record call?
eg. i do
foreach($something as $thing){
$this->db->where('a', $thing);
}
$query1=$this->db->where('b','2')
->get('table');
$result=$query->result();
and then i want to do something like $query2=$query1->db->where('c', '3') ->get('table') and then perhaps $query3=$query1->db->where('d', 4)...
how do i do this without rewriting all of the first query?