diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 4dd592a2f6..e710928bec 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -392,13 +392,13 @@ else if ($post_id) { - $sql = 'SELECT `post_subject` + $sql = 'SELECT post_subject FROM ' . POSTS_TABLE . " WHERE post_id = $post_id"; } else { - $sql = 'SELECT `topic_title` + $sql = 'SELECT topic_title FROM ' . TOPICS_TABLE . " WHERE topic_id = $topic_id"; }