From c0113214033e1efc9d6b61b65bb2911fb39c8f42 Mon Sep 17 00:00:00 2001 From: Yasen Pramatarov Date: Wed, 31 Jul 2024 13:18:45 +0300 Subject: [PATCH] Fixes SQL --- public_html/classes/queries.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public_html/classes/queries.php b/public_html/classes/queries.php index 9e05edd..e781508 100644 --- a/public_html/classes/queries.php +++ b/public_html/classes/queries.php @@ -11,7 +11,9 @@ FROM conferences c LEFT JOIN conference_events ce ON c.conference_id = ce.conference_id -WHERE (ce.time >= '%s 00:00:00' AND ce.time <= '%s 23:59:59')", +WHERE + (ce.time >= '%s 00:00:00' AND ce.time <= '%s 23:59:59') +AND ce.conference_event = 'conference created'", // search for a conference by its ID for a time period (if given) @@ -60,8 +62,6 @@ ORDER BY pe.time;", - - // list of conferences for time period (if given) // fields: component, duration, conference ID, conference name, number of participants, name count (the conf name is found), conference host 'conferences_all_formatted' => "