From 0cad61efbf5292e61c8ad73f7aa334854ecee25c Mon Sep 17 00:00:00 2001 From: Fyorl Date: Sat, 4 Aug 2012 14:08:49 +0100 Subject: [feature/attach-dl] Added table prefix to columns PHPBB3-11042 --- phpBB/download/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/download/file.php b/phpBB/download/file.php index 25fd9945ec..2346f9357c 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -173,7 +173,7 @@ if ($download_id) if ($topic_id) { - $sql = 'SELECT attach_id, in_message, post_msg_id, extension, is_orphan, a.poster_id, filetime + $sql = 'SELECT a.attach_id, a.in_message, a.post_msg_id, a.extension, a.is_orphan, a.poster_id, a.filetime FROM ' . POSTS_TABLE . ' p, ' . ATTACHMENTS_TABLE . " a WHERE p.topic_id = $topic_id AND p.post_attachment = 1 -- cgit v1.2.1