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