From b1c568a2b6865d51a2b0c1613be747d36e9ae46f Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Thu, 4 Jul 2024 18:26:50 +0300 Subject: [PATCH] SQL fix --- public_html/classes/queries.php | 4 ++-- public_html/pages/conferences.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public_html/classes/queries.php b/public_html/classes/queries.php index 6926e1d..66f6d26 100644 --- a/public_html/classes/queries.php +++ b/public_html/classes/queries.php @@ -25,12 +25,12 @@ SELECT DISTINCT AS end, c.conference_id, c.conference_name, - (SELECT COUNT(pe.participant_id) AS participants + (SELECT COUNT(pe.participant_id) FROM participant_events pe WHERE pe.event_type = 'participant joining' AND - pe.event_param = c.conference_id), + pe.event_param = c.conference_id) AS participants, name_counts.name_count, c.conference_host FROM diff --git a/public_html/pages/conferences.php b/public_html/pages/conferences.php index cdf028b..9ad0545 100644 --- a/public_html/pages/conferences.php +++ b/public_html/pages/conferences.php @@ -27,6 +27,7 @@ try { 'end' => $end, 'conference_id' => $conference_id, 'conference_name' => $conference_name, +// 'participants' => $participants, 'participants' => $participants, 'name_count' => $name_count, 'conference_host' => $conference_host