SELECT
    id attachment_id,
    filename,
    filesize,
    downloads,
    description,
    created_on,
    attachtype,
    link
FROM
    attachments