From 387f00d1a792cbc98b8ea25166a97193e64a07a2 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 25 Apr 2019 16:36:20 +0200 Subject: [PATCH] fix SQL error caused by no space before order by --- api/src/Contacts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Contacts.php b/api/src/Contacts.php index fc5d4b0ec5..e066ac8ebf 100755 --- a/api/src/Contacts.php +++ b/api/src/Contacts.php @@ -1725,7 +1725,7 @@ class Contacts extends Contacts\Storage { $sql .= " AND egw_cal_user.cal_status != 'R'"; } - $sql .= 'order by cal_recur_date ASC, cal_start ASC Limit 1 + $sql .= ' order by cal_recur_date ASC, cal_start ASC Limit 1 ) as next_event FROM egw_addressbook