         JOIN monolyth_auth_group ag ON a.id = ag.auth
         JOIN monolyth_group g ON g.id = ag.auth_group
     WHERE g.name = 'Monad' GROUP BY a.id;
+
 -- }}}
 

        SET NEW.sortorder = 1;
    END IF;
END;
$$
DELIMITER ;

DROP TRIGGER IF EXISTS monad_page_insert_after;
DELIMITER $$
CREATE TRIGGER monad_page_insert_after AFTER INSERT ON monad_page
FOR EACH ROW
BEGIN

    WHERE r.name IN ('monad', '*') AND a.id IS NOT NULL;

DROP FUNCTION IF EXISTS fn_monad_page_i18n_unique_slug;
CREATE FUNCTION fn_monad_page_i18n_unique_slug(oldid INT, str TEXT, lang INT) RETURNS TEXT
BEGIN
    SET @uniq = 0;
