getLinkColumn () == $field->getLinkApi ()) return $value; $sth = Database::singleton ()->prepare ("SELECT ". $field->getLinkColumn () ." FROM ". $field->getLink () ." WHERE ". $field->getLinkApi () ." = :value"); $sth->execute (array (':value' => $value)); $obj = $sth->fetch (PDO::FETCH_OBJ); if (!$obj) return NULL; $column = $field->getLinkColumn (); return $obj->$column; ?>