From 56af31c8061f36dd37101e3b638d5bba3ce1309c Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sun, 15 May 2016 09:11:42 -0400 Subject: [PATCH] fix for new mysql version --- lib/helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers.php b/lib/helpers.php index 6ce4f3d..d1bdd7d 100644 --- a/lib/helpers.php +++ b/lib/helpers.php @@ -394,7 +394,7 @@ function get_entry_options($user_id, $latitude=null, $longitude=null) { FROM entries WHERE user_id = :user_id ORDER BY published DESC) AS tmp - GROUP BY content + GROUP BY content, type ORDER BY MAX(published) DESC LIMIT 6', ['user_id'=>$user_id])->find_many(); $last_latitude = false;