mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 21:08:53 +00:00
[feature/attach-dl] Added table prefix to columns
PHPBB3-11042
This commit is contained in:
parent
18d7210a11
commit
0cad61efbf
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ if ($download_id)
|
||||||
|
|
||||||
if ($topic_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
|
FROM ' . POSTS_TABLE . ' p, ' . ATTACHMENTS_TABLE . " a
|
||||||
WHERE p.topic_id = $topic_id
|
WHERE p.topic_id = $topic_id
|
||||||
AND p.post_attachment = 1
|
AND p.post_attachment = 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue