@ -430,6 +430,8 @@
topic.ID = attachment.TOPIC_ID
AND
attachment.DEL_FLAG = '0'
attachment.ATTACHMENT_TYPE = 'image'
WHERE
topic.DEL_FLAG = '0'