<?php
$sql = "SELECT DATE_FORMAT(" . PREFIX . "_Schrift.Datum, '%Y%m%d') AS Datum, " . PREFIX . "_Schrift.Jahr, " . PREFIX . "_Schrift.ID, " . PREFIX . "_Kontakte.Firma, " . PREFIX . "_Kontakte.Nachname, " . PREFIX . "_Kontakte.Vorname FROM " . PREFIX . "_Schrift LEFT JOIN " . PREFIX . "_Kontakte ON " . PREFIX . "_Schrift.Kontakt_ID = " . PREFIX . "_Kontakte.ID " . $Abfrage . " ORDER BY " . PREFIX . "_Schrift.Datum DESC;";
$result = $db->query($sql);
include __DIR__ . "/sv_overview.php";	