From 31a4cda1473232f2281f0280ee866246f96aebad Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Tue, 19 Nov 2024 10:10:52 +1100 Subject: [PATCH] Fix an error for installs that use a database prefix --- src/elements/db/EventQuery.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elements/db/EventQuery.php b/src/elements/db/EventQuery.php index 114667a..adad8ae 100644 --- a/src/elements/db/EventQuery.php +++ b/src/elements/db/EventQuery.php @@ -133,7 +133,7 @@ protected function beforePrepare(): bool 'MIN(startDate) AS startDate', 'MAX(endDate) AS endDate', ]) - ->from('{{%events_sessions}}') + ->from('{{%events_sessions}} events_sessions') ->innerJoin('{{%elements}} elements', '[[elements.id]] = [[events_sessions.id]]') ->where([ // Only count live and non-deleted session elements