db->escape($uid); $res = $this->db->select("WorkflowExport", "*", "uid='$uid' ORDER BY id DESC LIMIT 1"); if($this->db->num_rows($res)) { $this->load($this->db->fetch_object($res)); } } }