function($id) { $cf = &$this->class_cfg; return $this->db->selectOne( $cf['tables']['versions'], 'MAX(' . $cf['arch']['versions']['version'] . ')', [ $cf['arch']['versions']['id_note'] => $id, ] ); }