To begin with, I'm aware to the:
$this->db->insert_id();
With that I will get the id of the last inserted mysql value, but I didn't manage to find any info about the way to retrieve the last inserted value to another colomn, let's say we have a field with name weight, I will get the id with insert_id() but how to get the weight value without the need to write a SQL statement?
I was reading the documentation and only thing I can maybe use is the last_query() method, but I'm not that sure if that will work, is there anything similar?
last_query()will only return the last query string, not it's result (e.g. SELECT * FROM sometable....). Maybe someone else can think of a way, but my guess you'll just have make another query of the db.