$h = $SQL->query("SELECT `name`, `paid`, `town_id` FROM `houses` WHERE `owner` = " . $player->getId() . " LIMIT 1")->fetchAll();
if (count($h) != 0) {
$bgcolor = (($number_of_rows++ % 2 == 1) ? $config['site']['darkborder'] : $config['site']['lightborder']);
$main_content .= '<tr bgcolor="' . $bgcolor . '"><td>House:</td><td>' . $h[0]['name'] . ' (' . htmlspecialchars($towns_list[$h[0]['town_id']]) . ') is paid until ' . str_replace(' ', ' ', date('M d Y', $h[0]['paid'])) . '</td></tr>';
}