public function getCountryName($code = NULL) { $table = new self(); $rName = $table->info('name'); $select = $table->select()->from($rName); $select->where('iso_code_3 = ?', $code); $item = $table->fetchRow($select); return $item->name; }