prepare_query(" SELECT t.`Media`, t.`FreeTorrent`, t.`GroupID`, t.`UserID`, t.`Description` AS TorrentDescription, tg.`category_id`, tg.`title` AS Title, tg.`year`, tg.`artist_id`, ag.`Name` AS ArtistName FROM `torrents` AS t JOIN `torrents_group` AS tg ON tg.`id` = t.`GroupID` LEFT JOIN `artists_group` AS ag ON ag.`ArtistID` = tg.`artist_id` WHERE t.`ID` = '$TorrentID' "); $DB->exec_prepared_query(); list($Properties) = $DB->to_array(false, MYSQLI_BOTH); if (!$Properties) { error(404); } View::show_header('Edit torrent', 'upload'); if (!check_perms('site_moderate_requests')) { error(403); } ?>