DROP VIEW IF EXISTS last_article_tasks_view;
CREATE VIEW last_article_tasks_view (
 offer_participant_delivery_id,
 last_date
) as
SELECT
        `offer_participant_delivery_id`,
        MAX(created_at) AS `last_date`
    FROM
        `articles`
    GROUP BY
        `offer_participant_delivery_id`;