From 79f5ed8bb54600533ccf44694a03ca5ffe99b827 Mon Sep 17 00:00:00 2001 From: Donal McBreen Date: Wed, 8 Nov 2023 14:58:52 +0000 Subject: [PATCH] Pre and post Traefik reboot hooks Provide pre and post reboot hooks for Traefik, that can be used to remove/add to an external load balancer to prevent requests from being sent during the reboot. Works best with the --rolling setting, where each hook is called once per host. --- lib/kamal/cli/traefik.rb | 18 +- queries | 747 ++++++++++++++++++ .../app/.kamal/hooks/post-traefik-reboot | 3 + .../app/.kamal/hooks/pre-traefik-reboot | 3 + test/integration/traefik_test.rb | 13 +- 5 files changed, 777 insertions(+), 7 deletions(-) create mode 100644 queries create mode 100755 test/integration/docker/deployer/app/.kamal/hooks/post-traefik-reboot create mode 100755 test/integration/docker/deployer/app/.kamal/hooks/pre-traefik-reboot diff --git a/lib/kamal/cli/traefik.rb b/lib/kamal/cli/traefik.rb index 9bc4f6448..e835b1d8d 100644 --- a/lib/kamal/cli/traefik.rb +++ b/lib/kamal/cli/traefik.rb @@ -13,12 +13,18 @@ def boot option :rolling, type: :boolean, default: false, desc: "Reboot traefik on hosts in sequence, rather than in parallel" def reboot mutating do - on(KAMAL.traefik_hosts, in: options[:rolling] ? :sequence : :parallel) do - execute *KAMAL.auditor.record("Rebooted traefik"), verbosity: :debug - execute *KAMAL.registry.login - execute *KAMAL.traefik.stop - execute *KAMAL.traefik.remove_container - execute *KAMAL.traefik.run + host_groups = options[:rolling] ? KAMAL.traefik_hosts : [KAMAL.traefik_hosts] + host_groups.each do |hosts| + host_list = Array(hosts).join(",") + run_hook "pre-traefik-reboot", hosts: host_list + on(hosts) do + execute *KAMAL.auditor.record("Rebooted traefik"), verbosity: :debug + execute *KAMAL.registry.login + execute *KAMAL.traefik.stop + execute *KAMAL.traefik.remove_container + execute *KAMAL.traefik.run + end + run_hook "post-traefik-reboot", hosts: host_list end end end diff --git a/queries b/queries new file mode 100644 index 000000000..8ec3a4767 --- /dev/null +++ b/queries @@ -0,0 +1,747 @@ +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 59025) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 59025 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119381456 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 59025) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 59025 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119381456 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 32020052 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 32020052 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 32020052 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31865394 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31865394 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31865394 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-05-24 13:51:14' AND `postings`.`id` < 573587552 OR `postings`.`active_at` < '2023-05-24 13:51:14') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 151981) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 151981 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118823782 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 151981) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 151981 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118823782 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43054800 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43054800 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43054800 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 10606498 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 10606498 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 10606498 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 10848889 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 10848889 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 118897) AND `postings`.`user_id` = 119003 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 10848889 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-09 14:32:14' AND `postings`.`id` < 649775156 OR `postings`.`active_at` < '2023-10-09 14:32:14') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-23 17:44:13' AND `postings`.`id` < 657298529 OR `postings`.`active_at` < '2023-10-23 17:44:13') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 370688) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 370688 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 41893190 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 370688) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 370688 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 41893190 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 370688) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 370688 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 41893190 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-05-24 13:51:14' AND `postings`.`id` < 573587552 OR `postings`.`active_at` < '2023-05-24 13:51:14') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-05-24 13:51:14' AND `postings`.`id` < 573587552 OR `postings`.`active_at` < '2023-05-24 13:51:14') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 39582006 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-05 15:21:00' AND `postings`.`id` < 647893980 OR `postings`.`active_at` < '2023-10-05 15:21:00') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-05 15:21:00' AND `postings`.`id` < 647893980 OR `postings`.`active_at` < '2023-10-05 15:21:00') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-09 14:32:14' AND `postings`.`id` < 649775156 OR `postings`.`active_at` < '2023-10-09 14:32:14') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-09 14:32:14' AND `postings`.`id` < 649775156 OR `postings`.`active_at` < '2023-10-09 14:32:14') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95669098 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95669098 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95669098 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 84297) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 84297 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (2642394, 35010213) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 84297) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 84297 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (2642394, 35010213) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 84297) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 84297 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (2642394, 35010213) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43209843 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43209843 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43209843 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-23 17:44:13' AND `postings`.`id` < 657298529 OR `postings`.`active_at` < '2023-10-23 17:44:13') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-23 17:44:13' AND `postings`.`id` < 657298529 OR `postings`.`active_at` < '2023-10-23 17:44:13') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 72157418 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 72157418 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 72157418 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13611555 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13611555 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13611555 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-23 06:39:33' AND `postings`.`id` < 656985167 OR `postings`.`active_at` < '2023-10-23 06:39:33') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84272411 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84272411 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84272411 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 485652) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 485652 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87516401 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 7721) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 7721 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115911671 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 7721) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 7721 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115911671 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 151981) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 151981 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119110998 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 151981) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 151981 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119110998 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 588826) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 588826 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93003659 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-28 22:12:35' AND `postings`.`id` < 660131690 OR `postings`.`active_at` < '2023-10-28 22:12:35') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 588826) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 588826 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93003659 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 588826) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 588826 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93003659 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-28 22:12:35' AND `postings`.`id` < 660131690 OR `postings`.`active_at` < '2023-10-28 22:12:35') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 588826) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 588826 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93003659 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 588826) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 588826 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93003659 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 588826) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 588826 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93003659 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 5426797 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 5426797 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 308626) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 308626 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56825807 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 308626) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 308626 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56825807 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 308626) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 308626 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56825807 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 676435) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 676435 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119502850 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 676435) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 676435 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119502850 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 408705) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 408705 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 51574069 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 408705) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 408705 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 51574069 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 408705) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 408705 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 51574069 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 9102198 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 9102198 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 9102198 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 10309490 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 10309490 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2924436 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2924436 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2924436 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 51849337 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 51849337 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 51849337 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 394713 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 394713 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 394713 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56535) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56535 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 23772297 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56535) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56535 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 23772297 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56535) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56535 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 23772297 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 14499825 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 14499825 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 14499825 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-08-07 19:26:21' AND `postings`.`id` < 616917013 OR `postings`.`active_at` < '2023-08-07 19:26:21') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-08-07 19:26:21' AND `postings`.`id` < 616917013 OR `postings`.`active_at` < '2023-08-07 19:26:21') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77760390 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77760390 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77760390 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 326042) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 326042 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 103260200 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 326042) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 326042 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 103260200 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 326042) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 326042 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 103260200 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119203199 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119203199 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119203199 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56535) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56535 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 23772297 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56535) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56535 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 23772297 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56535) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56535 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 23772297 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 151981) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 151981 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119110998 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 151981) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 151981 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119110998 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-09-13 18:34:50' AND `postings`.`id` < 636001768 OR `postings`.`active_at` < '2023-09-13 18:34:50') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-09-13 18:34:50' AND `postings`.`id` < 636001768 OR `postings`.`active_at` < '2023-09-13 18:34:50') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 109157576 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13611555 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13611555 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13611555 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 47631839 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 47631839 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 47631839 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 403429) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 403429 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93300194 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 403429) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 403429 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93300194 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 403429) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 403429 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93300194 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43209843 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43209843 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 43209843 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84272411 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84272411 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84272411 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 72157418 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 72157418 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 72157418 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 106168454 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 106168454 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 106168454 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95669098 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95669098 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69863) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69863 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95669098 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 106701) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 106701 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (80724859, 81734592, 94302743, 97557423, 111322424, 115829014, 118870881, 119410658, 119615407) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 106701) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 106701 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (80724859, 81734592, 94302743, 97557423, 111322424, 115829014, 118870881, 119410658, 119615407) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 106701) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 106701 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (80724859, 81734592, 94302743, 97557423, 111322424, 115829014, 118870881, 119410658, 119615407) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36891) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36891 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 18388225 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36891) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36891 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 18388225 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36891) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36891 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 18388225 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36891) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36891 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33385164 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36891) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36891 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33385164 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36891) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36891 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33385164 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 632073) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 632073 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119733421 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 632073) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 632073 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119733421 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36889) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36889 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26619991 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36889) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36889 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26619991 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 36889) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 36889 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26619991 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 308626) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 308626 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56825807 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 308626) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 308626 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56825807 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 308626) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 308626 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56825807 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 38036607 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 342492) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 342492 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 38036607 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119203199 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119203199 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 62886) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 62886 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119203199 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8632) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8632 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 5390784 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8632) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8632 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 5390784 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8632) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8632 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 5390784 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190507) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190507 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 37709374 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190507) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190507 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 37709374 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-27 15:05:17' AND `postings`.`id` < 659627569 OR `postings`.`active_at` < '2023-10-27 15:05:17') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-27 15:05:17' AND `postings`.`id` < 659627569 OR `postings`.`active_at` < '2023-10-27 15:05:17') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-30 19:21:53' AND `postings`.`id` < 661074897 OR `postings`.`active_at` < '2023-10-30 19:21:53') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-30 19:21:53' AND `postings`.`id` < 661074897 OR `postings`.`active_at` < '2023-10-30 19:21:53') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9440) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9440 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 100252298 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9440) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9440 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 100252298 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 279617) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 279617 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 26321209 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9440) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9440 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 100252298 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9440) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9440 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 100252298 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 26889) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 26889 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 46998542 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 26889) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 26889 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 46998542 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 26889) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 26889 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 46998542 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 413538) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 413538 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77866350 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 413538) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 413538 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77866350 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 413538) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 413538 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77866350 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 413538) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 413538 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77866350 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 413538) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 413538 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77866350 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 413538) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 413538 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77866350 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118023856 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118023856 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118023856 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118023856 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118023856 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 25064) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 25064 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118023856 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 268321) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 268321 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21335768 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 268321) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 268321 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21335768 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 268321) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 268321 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21335768 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 27503) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 27503 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 67848026 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 27503) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 27503 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 67848026 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 27503) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 27503 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 67848026 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 22079) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 22079 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 17884675 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 22079) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 22079 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 17884675 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 22079) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 22079 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 17884675 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 631979) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 631979 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120388665 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 631979) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 631979 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120388665 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 631979) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 631979 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120388665 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 631979) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 631979 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120388665 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19615) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19615 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21386410 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19615) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19615 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21386410 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 27503) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 27503 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 67848026 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 27503) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 27503 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 67848026 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 27503) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 27503 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 67848026 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120383718 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120383718 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-23 06:39:33' AND `postings`.`id` < 656985167 OR `postings`.`active_at` < '2023-10-23 06:39:33') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-23 06:39:33' AND `postings`.`id` < 656985167 OR `postings`.`active_at` < '2023-10-23 06:39:33') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 543042) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 543042 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84590992 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 543042) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 543042 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84590992 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 209325) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 209325 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 17245819 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 209325) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 209325 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 17245819 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 209325) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 209325 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 17245819 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-23 06:39:33' AND `postings`.`id` < 656985167 OR `postings`.`active_at` < '2023-10-23 06:39:33') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-23 06:39:33' AND `postings`.`id` < 656985167 OR `postings`.`active_at` < '2023-10-23 06:39:33') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 543042) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 543042 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84590992 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 543042) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 543042 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84590992 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 519925) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 519925 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118399008 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 631979) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 631979 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120388665 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 631979) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 631979 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120388665 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 631979) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 631979 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120388665 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 631979) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 631979 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120388665 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 486976) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 486976 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93830993 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 486976) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 486976 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93830993 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 486976) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 486976 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93830993 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 401271) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 401271 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87719645 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 401271) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 401271 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87719645 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 401271) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 401271 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87719645 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 486976) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 486976 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 73334804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 486976) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 486976 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 73334804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 486976) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 486976 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 73334804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190828) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190828 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115635818 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190828) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190828 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115635818 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190828) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190828 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115635818 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190828) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190828 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115635818 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190828) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190828 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13785428 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190828) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190828 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13785428 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 190828) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 190828 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 13785428 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 284809) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 284809 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116105212 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 284809) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 284809 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116105212 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 88986) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 88986 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 3393193 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 88986) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 88986 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 3393193 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 88986) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 88986 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 3393193 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-02 09:08:54' AND `postings`.`id` < 642510482 OR `postings`.`active_at` < '2023-10-02 09:08:54') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-02 09:08:54' AND `postings`.`id` < 642510482 OR `postings`.`active_at` < '2023-10-02 09:08:54') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 500714) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 500714 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 78073547 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 500714) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 500714 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 78073547 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 500714) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 500714 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 78073547 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-10 10:45:41' AND `postings`.`id` < 650194493 OR `postings`.`active_at` < '2023-10-10 10:45:41') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-10 10:45:41' AND `postings`.`id` < 650194493 OR `postings`.`active_at` < '2023-10-10 10:45:41') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 500714) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 500714 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 78073547 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 500714) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 500714 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 78073547 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 500714) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 500714 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 78073547 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 431096) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 431096 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 57908443 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 431096) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 431096 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 57908443 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 431096) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 431096 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 57908443 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 431096) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 431096 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84723901 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 431096) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 431096 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84723901 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 431096) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 431096 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84723901 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2621824 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2621824 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2621824 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 661423) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 661423 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115482286 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 77353) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 77353 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116819688 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 77353) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 77353 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116819688 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286824) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286824 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 28767291 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286824) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286824 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 28767291 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286824) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286824 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 28767291 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286824) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286824 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 28027463 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286824) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286824 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 28027463 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286824) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286824 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 28027463 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (63127457, 88060240, 50) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (63127457, 88060240, 50) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (63127457, 88060240, 50) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (71966584, 51) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (71966584, 51) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (71966584, 51) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (76468147, 748) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (76468147, 748) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 459296) AND `postings`.`user_id` = 458356 AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (76468147, 748) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21087782 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21087782 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21087782 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2621824 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2621824 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2621824 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 18338647 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 18338647 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48515) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48515 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 18338647 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 475736) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 475736 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118961176 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 475736) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 475736 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118961176 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 403760) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 403760 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (84013362, 75976220, 75975710, 83747783) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 403760) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 403760 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (84013362, 75976220, 75975710, 83747783) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 403760) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 403760 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (84013362, 75976220, 75975710, 83747783) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 294130) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 294130 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 37679350 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 294130) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 294130 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 37679350 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 294130) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 294130 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 37679350 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8196) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8196 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33965695 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8196) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8196 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33965695 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8196) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8196 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33965695 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56647) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56647 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8864240 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56647) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56647 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8864240 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56647) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56647 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8864240 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56647) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56647 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8864240 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56647) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56647 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8864240 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 56647) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 56647 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8864240 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 663878) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 663878 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 114701678 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 663878) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 663878 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 114701678 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 308553) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 308553 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND 1=0 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 88298) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 88298 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 48317212 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 88298) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 88298 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 48317212 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 88298) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 88298 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 48317212 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 7721) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 7721 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119487362 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 7721) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 7721 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119487362 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 88784319 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 88784319 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 88784319 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 643630) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 643630 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 107220850 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 643630) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 643630 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 107220850 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 643630) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 643630 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 107220850 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 643630) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 643630 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 106743343 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 643630) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 643630 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 106743343 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 643630) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 643630 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 106743343 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 414461) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 414461 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116346748 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115457451 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115457451 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115457451 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115457451 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115457451 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115457451 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115597101 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115597101 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115597101 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118984666 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118984666 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118984666 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119426681 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119426681 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119426681 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119426681 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119426681 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119426681 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118984666 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118984666 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118984666 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115597101 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115597101 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 673234) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 673234 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 115597101 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 657631) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 657631 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119341168 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 657631) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 657631 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119341168 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 676435) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 676435 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119934130 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 676435) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 676435 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 119934130 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 96429) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 96429 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120249415 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 96429) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 96429 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120249415 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 33913) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 33913 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120327835 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 33913) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 33913 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120327835 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 71422751 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 71422751 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 71422751 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 41598746 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 41598746 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 41598746 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12263655 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12263655 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 160530) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 160530 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12263655 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 690327) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 690327 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120224951 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 690327) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 690327 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120224951 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 514673) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 514673 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116647878 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 514673) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 514673 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116647878 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 514673) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 514673 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116647878 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 270534) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 270534 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21308352 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 270534) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 270534 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21308352 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 270534) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 270534 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21308352 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 411111) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 411111 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120277784 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 411111) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 411111 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120277784 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 690327) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 690327 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120224951 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 690327) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 690327 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120224951 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87246737 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87246737 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87246737 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286561) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286561 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95747205 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286561) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286561 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95747205 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 286561) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 286561 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 95747205 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 4579632 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 4579632 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 4579632 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT `identity_preferences`.* FROM `identity_preferences` WHERE `identity_preferences`.`identity_id` = 22079 LIMIT 1\n Rendered layout layouts/application.html.erb (Duration: 1895.0ms | Allocations: 1056924)\nCompleted 200 OK in 1967ms (Views: 1110.9ms | ActiveRecord: 841.5ms | Elasticsearch: 0.0ms | Allocations: 1075172)\n""}" +SELECT COUNT(*) AS `size`, MAX(`entries`.`updated_at`) AS timestamp FROM `entries` WHERE `entries`.`creator_id` IN (SELECT `contacts`.`id` FROM `contacts` INNER JOIN `users` ON `contacts`.`contactable_id` = `users`.`id` WHERE `users`.`identity_id` = 203632 AND `contacts`.`contactable_type` = 'User') AND `entries`.`entryable_type` = 'Message' AND `entries`.`status` = 0 AND 1=0\n Rendering entries/parkings/index.html.erb\n Rendered collection of entries/parkings/_entry.html.erb [0 times] (Duration: 0.1ms | Allocations: 25)\n Rendered entries/parkings/index.html.erb (Duration: 0.4ms | Allocations: 265)\nCompleted 200 OK in 14ms (Views: 0.6ms | ActiveRecord: 4.0ms | Elasticsearch: 0.0ms | Allocations: 12790)\n""}" +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2580907 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2580907 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 2580907 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 88784319 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 88784319 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 88784319 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87246737 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87246737 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 95489) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 95489 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87246737 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93204111 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93204111 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93204111 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12881316 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12881316 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12881316 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93204111 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93204111 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93204111 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12881316 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12881316 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67641) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67641 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 12881316 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 113027709 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 113027709 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2022-10-31 17:26:16' AND `postings`.`id` < 466687817 OR `postings`.`active_at` < '2022-10-31 17:26:16') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 270534) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 270534 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21308352 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 270534) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 270534 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21308352 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 270534) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 270534 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 21308352 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 113027709 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 113027709 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-08-18 18:55:06' AND `postings`.`id` < 622717707 OR `postings`.`active_at` < '2023-08-18 18:55:06') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-08-18 18:55:06' AND `postings`.`id` < 622717707 OR `postings`.`active_at` < '2023-08-18 18:55:06') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2022-11-10 00:07:28' AND `postings`.`id` < 472056798 OR `postings`.`active_at` < '2022-11-10 00:07:28') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 77638) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 77638 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (2221312, 2224852, 2225040, 119468319) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 77638) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 77638 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (2221312, 2224852, 2225040, 119468319) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 11592) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 11592 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 365459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 11592) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 11592 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 365459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 11592) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 11592 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 365459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 108401025 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 108401025 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2022-10-31 17:26:16' AND `postings`.`id` < 466687817 OR `postings`.`active_at` < '2022-10-31 17:26:16') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 108401025 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 108401025 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2022-11-10 00:07:28' AND `postings`.`id` < 472056798 OR `postings`.`active_at` < '2022-11-10 00:07:28') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 10039) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 10039 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 399173 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 10039) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 10039 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 399173 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 10039) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 10039 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 399173 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-08-18 18:55:06' AND `postings`.`id` < 622717707 OR `postings`.`active_at` < '2023-08-18 18:55:06') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-08-18 18:55:06' AND `postings`.`id` < 622717707 OR `postings`.`active_at` < '2023-08-18 18:55:06') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-07-26 03:45:11' AND `postings`.`id` < 610464423 OR `postings`.`active_at` < '2023-07-26 03:45:11') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-07-26 03:45:11' AND `postings`.`id` < 610464423 OR `postings`.`active_at` < '2023-07-26 03:45:11') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 513296) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 513296 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80404804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 30019) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 30019 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80775358 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 30019) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 30019 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 80775358 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (108401025, 113027709) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (108401025, 113027709) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (108401025, 113027709) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 322757) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 322757 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (108401025, 113027709) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-03-31 18:52:09' AND `postings`.`id` < 549177991 OR `postings`.`active_at` < '2023-03-31 18:52:09') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-03-31 18:52:09' AND `postings`.`id` < 549177991 OR `postings`.`active_at` < '2023-03-31 18:52:09') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-17 12:30:13' AND `postings`.`id` < 654014918 OR `postings`.`active_at` < '2023-10-17 12:30:13') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2022-11-10 00:07:28' AND `postings`.`id` < 472056798 OR `postings`.`active_at` < '2022-11-10 00:07:28') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-26 09:03:32' AND `postings`.`id` < 658804438 OR `postings`.`active_at` < '2023-10-26 09:03:32') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8196) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8196 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33965695 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8196) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8196 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33965695 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 8196) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 8196 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 33965695 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-07-26 03:45:11' AND `postings`.`id` < 610464423 OR `postings`.`active_at` < '2023-07-26 03:45:11') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-04-12 14:27:45' AND `postings`.`id` < 550423716 OR `postings`.`active_at` < '2023-04-12 14:27:45') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-04-12 14:27:45' AND `postings`.`id` < 550423716 OR `postings`.`active_at` < '2023-04-12 14:27:45') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48020) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48020 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118584876 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 48020) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 48020 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 118584876 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 67358) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 67358 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93216905 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 133186) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 133186 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (67369403, 118264785, 67369387) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 305654) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 305654 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 29720558 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-09-20 18:11:45' AND `postings`.`id` < 639258582 OR `postings`.`active_at` < '2023-09-20 18:11:45') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 305654) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 305654 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 29720558 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 558416) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 558416 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 85043979 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 558416) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 558416 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 85043979 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 45285) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 45285 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 40616474 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 45285) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 45285 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 40616474 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 45285) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 45285 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 40616474 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 558416) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 558416 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 85043979 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 558416) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 558416 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 85043979 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54990502 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54990502 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 72859) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 72859 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 111732103 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 72859) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 72859 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 111732103 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 72859) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 72859 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 111732103 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69058) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69058 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56827804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69058) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69058 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56827804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69058) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69058 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56827804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 102635078 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 102635078 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-17 12:30:13' AND `postings`.`id` < 654014918 OR `postings`.`active_at` < '2023-10-17 12:30:13') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-17 12:30:13' AND `postings`.`id` < 654014918 OR `postings`.`active_at` < '2023-10-17 12:30:13') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 333292) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 333292 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 46308241 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 333292) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 333292 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 46308241 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 333292) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 333292 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 46308241 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-26 09:03:32' AND `postings`.`id` < 658804438 OR `postings`.`active_at` < '2023-10-26 09:03:32') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-10-26 09:03:32' AND `postings`.`id` < 658804438 OR `postings`.`active_at` < '2023-10-26 09:03:32') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 167905) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 167905 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8607731 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 18315) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 18315 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 94239406 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 18315) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 18315 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 94239406 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 320314) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 320314 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 82279752 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 320314) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 320314 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 82279752 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19888) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19888 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 75837332 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19888) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19888 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 75837332 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19888) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19888 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 75837332 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 105027462 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 105027462 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 49797) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 49797 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 35333119 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 49797) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 49797 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 35333119 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 49797) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 49797 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 35333119 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 49797) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 49797 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 27007264 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 49797) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 49797 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 27007264 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 49797) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 49797 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 27007264 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 318746) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 318746 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116124298 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 318746) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 318746 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116124298 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2022-11-10 00:07:28' AND `postings`.`id` < 472056798 OR `postings`.`active_at` < '2022-11-10 00:07:28') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-07-26 03:45:11' AND `postings`.`id` < 610464423 OR `postings`.`active_at` < '2023-07-26 03:45:11') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-07-26 03:45:11' AND `postings`.`id` < 610464423 OR `postings`.`active_at` < '2023-07-26 03:45:11') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 75169) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 75169 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87833811 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 75169) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 75169 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 87833811 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 9170) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 9170 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 54927836 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 318209) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 318209 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 49958476 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 318209) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 318209 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 49958476 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 318209) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 318209 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 49958476 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 23672) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 23672 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 44911204 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 23672) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 23672 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 44911204 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 23672) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 23672 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 44911204 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 672676) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 672676 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (115096173, 115427375, 115775591, 115791585, 115791593, 116663672, 117279853, 118899166, 119731016) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 672676) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 672676 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (115096173, 115427375, 115775591, 115791585, 115791593, 116663672, 117279853, 118899166, 119731016) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 672676) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 672676 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (115096173, 115427375, 115775591, 115791585, 115791593, 116663672, 117279853, 118899166, 119731016) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 18315) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 18315 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 92387320 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 18315) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 18315 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 92387320 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 192753) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 192753 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (102862475, 119182090, 119261784) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 311341) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 311341 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 52220444 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 311341) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 311341 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 52220444 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 311341) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 311341 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 52220444 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 672676) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 672676 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116663672 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 672676) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 672676 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 116663672 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69058) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69058 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56827804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69058) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69058 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56827804 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 69058) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 69058 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 56827804 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 45190) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 45190 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 49901403 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 45190) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 45190 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 49901403 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 45190) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 45190 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 49901403 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 158400) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 158400 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8503517 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 158400) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 158400 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8503517 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 158400) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 158400 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 8503517 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 340388) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 340388 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84884082 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 340388) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 340388 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84884082 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 340388) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 340388 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84884082 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 69763506 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 69763506 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 69763506 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 46762) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 46762 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 83496578 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 46762) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 46762 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 83496578 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 46762) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 46762 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 83496578 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 18315) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 18315 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 97221849 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 18315) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 18315 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 97221849 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 298555) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 298555 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31375690 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 298555) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 298555 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31375690 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 298555) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 298555 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31375690 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 312171) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 312171 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 30935070 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 312171) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 312171 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 30935070 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 312171) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 312171 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 30935070 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-11-02 15:42:43' AND `postings`.`id` < 662848763 OR `postings`.`active_at` < '2023-11-02 15:42:43') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-11-02 15:42:43' AND `postings`.`id` < 662848763 OR `postings`.`active_at` < '2023-11-02 15:42:43') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-11-03 10:24:47' AND `postings`.`id` < 663299036 OR `postings`.`active_at` < '2023-11-03 10:24:47') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) AND (`postings`.`active_at` = '2023-11-03 10:24:47' AND `postings`.`id` < 663299036 OR `postings`.`active_at` < '2023-11-03 10:24:47') ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 165928) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 165928 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (118569344, 119439752) AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 30 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 165928) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 165928 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` IN (118569344, 119439752) AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 667222) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 667222 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 112616375 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 329690) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 329690 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 36108177 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 329690) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 329690 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 36108177 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 329690) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 329690 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 36108177 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77760390 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77760390 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 4810) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 4810 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 77760390 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 69763506 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 69763506 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 69763506 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31460528 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31460528 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19786) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19786 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 31460528 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19537) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19537 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 746852 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19537) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19537 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 746852 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 19537) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 19537 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 746852 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 5455) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 5455 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120333380 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 5455) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 5455 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120333380 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 21419) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 21419 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 120401674 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 93425459 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 83942) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 83942 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 58684430 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 83942) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 83942 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 58684430 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 83942) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 83942 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 58684430 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 27532828 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 27532828 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 27532828 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84954100 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 +SELECT COUNT(DISTINCT `postings`.`id`) FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84954100 AND (`users`.`account_id` = `involvements`.`account_id`) +SELECT DISTINCT `postings`.`id`, `postings`.`active_at` FROM `postings` USE INDEX (index_postings_on_user_id_and_postable_and_active_at) STRAIGHT_JOIN `involvements` USE INDEX(index_involvements_on_account_id_and_topic_id_and_contact_id) ON `involvements`.`topic_id` = `postings`.`postable_id` INNER JOIN `users` ON `users`.`id` = `postings`.`user_id` WHERE `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` WHERE `users`.`identity_id` = 51671) AND `postings`.`user_id` IN (SELECT `users`.`id` FROM `users` INNER JOIN `accounts` ON `accounts`.`id` = `users`.`account_id` WHERE `users`.`identity_id` = 51671 AND (`accounts`.`status` = 0 OR `accounts`.`purpose` = 2 AND `accounts`.`status` = 1)) AND `postings`.`postable_type` = 'Topic' AND `involvements`.`contact_id` = 84954100 AND (`users`.`account_id` = `involvements`.`account_id`) ORDER BY `postings`.`active_at` DESC, `postings`.`id` DESC LIMIT 10 diff --git a/test/integration/docker/deployer/app/.kamal/hooks/post-traefik-reboot b/test/integration/docker/deployer/app/.kamal/hooks/post-traefik-reboot new file mode 100755 index 000000000..598ddb633 --- /dev/null +++ b/test/integration/docker/deployer/app/.kamal/hooks/post-traefik-reboot @@ -0,0 +1,3 @@ +#!/bin/sh +echo "Rebooted Traefik on ${KAMAL_HOSTS}" +mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/post-traefik-reboot diff --git a/test/integration/docker/deployer/app/.kamal/hooks/pre-traefik-reboot b/test/integration/docker/deployer/app/.kamal/hooks/pre-traefik-reboot new file mode 100755 index 000000000..81269d246 --- /dev/null +++ b/test/integration/docker/deployer/app/.kamal/hooks/pre-traefik-reboot @@ -0,0 +1,3 @@ +#!/bin/sh +echo "Rebooting Traefik on ${KAMAL_HOSTS}..." +mkdir -p /tmp/${TEST_ID} && touch /tmp/${TEST_ID}/pre-traefik-reboot diff --git a/test/integration/traefik_test.rb b/test/integration/traefik_test.rb index 92211c439..ed8a956f9 100644 --- a/test/integration/traefik_test.rb +++ b/test/integration/traefik_test.rb @@ -7,8 +7,19 @@ class TraefikTest < IntegrationTest kamal :traefik, :boot assert_traefik_running - kamal :traefik, :reboot + output = kamal :traefik, :reboot, capture: true assert_traefik_running + assert_hooks_ran "pre-traefik-reboot", "post-traefik-reboot" + assert_match /Rebooting Traefik on vm1,vm2.../, output + assert_match /Rebooted Traefik on vm1,vm2/, output + + output = kamal :traefik, :reboot, :"--rolling", capture: true + assert_traefik_running + assert_hooks_ran "pre-traefik-reboot", "post-traefik-reboot" + assert_match /Rebooting Traefik on vm1.../, output + assert_match /Rebooted Traefik on vm1/, output + assert_match /Rebooting Traefik on vm2.../, output + assert_match /Rebooted Traefik on vm2/, output kamal :traefik, :boot assert_traefik_running