Code:
$result = $adopts->select("owned_adoptables", array(), "aid='{$id}'");
while ($row = $result->fetchObject()) {
$father=$row->father;
$mother=$row->mother;
$getFather = $adopts->select("owned_adoptables", array(), "aid='{$father}'")->fetchObject();
$getFather->name;
$getMother = $adopts->select("owned_adoptables", array("name"), "aid='{$mother}'");
$nFather = $nFather['name'];
$nMother = $row->getMother;
$nMother = $nMother['name'];
if($father == '' && $nMother == '') {
$article_content .= '';
} else {
$article_content .= 'Father: <a href="levelup.php?id='.$father.'">' . $getfather . '</a><br>
Mother: ' . $nMother . '<br>';
Somehow I didn't do it right :/