SELECT
cscart_attachments.*,
cscart_attachment_descriptions.description
FROM
cscart_attachments
LEFT JOIN cscart_attachment_descriptions ON cscart_attachments.attachment_id = cscart_attachment_descriptions.attachment_id
AND lang_code = 'en'
WHERE
object_type = 'product'
AND object_id = 276498
AND type = 'M'
AND (
usergroup_ids = ''
OR FIND_IN_SET(0, usergroup_ids)
OR FIND_IN_SET(1, usergroup_ids)
)
AND status = 'A'
ORDER BY
position