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;