I just noticed that the above SQL query does not take into account pipe-separated multiple email addresses for groups and categories.
I just noticed that the above SQL query does not take into account pipe-separated multiple email addresses for groups and categories.