1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-15 22:26:32 +02:00

[feature/attach-dl] Added table prefix to columns

PHPBB3-11042
This commit is contained in:
Fyorl
2012-08-04 14:08:49 +01:00
parent 18d7210a11
commit 0cad61efbf

View File

@ -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