[eluser]davidbehler[/eluser]
Actually $this->db->select(); is not chaining. $this is the object you are in (your model), db is an attribute of that object holding an instance of the db class and select is a method of the db class. Chaining means calling several methods after another where every method returns the object and that's used to call the next method.
PHP4 does not support chaining,e.g.
Code:
$this->db->select('id,nombre')->from('modulos')->where('id_Moto', $id_Moto);
with select, from and where being methods of the db class that each return the db object.
So you have to divide that into 3 different calls, just like tomcode proposed:
Code:
$this->db->select('id,nombre');
$this->db->from('modulos');
$this->db->where('id_Moto', $id_Moto);