join_date is closer to actual start of membership
authorAndrew Engelbrecht <andrew@fsf.org>
Wed, 14 Jun 2023 18:09:16 +0000 (14:09 -0400)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 14 Jun 2023 18:09:16 +0000 (14:09 -0400)
board-forum-contacts.sql

index c47543de5b14092d2d39b86356a3f896edd6f81f..92636c19de7a43f69e7ded079a05f7cb4e9e5d13 100644 (file)
@@ -19,7 +19,7 @@ and c.id not in (
         ) and (
             c.id in (
                 select contact_id from civicrm_membership
-                where status_id in (1, 2, 3, 4) and end_date >= '2018-01-19' and start_date <= '2022-10-19' -- was a member during time period
+                where status_id in (1, 2, 3, 4) and end_date >= '2018-01-19' and join_date <= '2022-10-19' -- was a member during time period
             ) or c.id in (
                 select contact_id from civicrm_contribution
                 where contribution_status_id = 1 and receive_date >= '2018-01-19' and receive_date <= '2022-10-19'