From 7cbbb626c18909d45f95ad2796518b1956d6db9e Mon Sep 17 00:00:00 2001 From: Howl Date: Sat, 18 Jun 2016 02:42:47 +0200 Subject: [PATCH] LEFT JOIN -> INNER JOIN --- app/peppy/user.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/peppy/user.go b/app/peppy/user.go index 2e1946c..f793a5c 100644 --- a/app/peppy/user.go +++ b/app/peppy/user.go @@ -31,7 +31,7 @@ func GetUser(c *gin.Context, db *sql.DB) { users_stats.country, users_stats.show_country FROM users LEFT JOIN users_stats ON users_stats.id = users.id - LEFT JOIN leaderboard_%s ON leaderboard_%s.user = users.id + INNER JOIN leaderboard_%s ON leaderboard_%s.user = users.id %s LIMIT 1`, mode, mode, mode, mode, mode, mode, mode, mode, whereClause,