From 69e1d585ccfe84d0c12cdb579be0dcf80e837ac1 Mon Sep 17 00:00:00 2001 From: Howl Date: Fri, 19 Aug 2016 23:48:44 +0200 Subject: [PATCH] LEFT to INNER --- app/v1/blog.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/v1/blog.go b/app/v1/blog.go index 1cb3add..1b531c1 100644 --- a/app/v1/blog.go +++ b/app/v1/blog.go @@ -34,8 +34,8 @@ func BlogPostsGET(md common.MethodData) common.CodeMessager { u.id, u.username, s.username_aka, u.register_datetime, u.privileges, u.latest_activity, s.country FROM anchor_posts b - LEFT JOIN users u ON b.author = u.id - LEFT JOIN users_stats s ON b.author = s.id + INNER JOIN users u ON b.author = u.id + INNER JOIN users_stats s ON b.author = s.id WHERE status = "published" `+and+` ORDER BY b.id DESC `+common.Paginate(md.Query("p"), md.Query("l"), 50), params...) if err != nil {