LEFT JOIN -> INNER JOIN
This commit is contained in:
parent
b3e31734f5
commit
7cbbb626c1
|
@ -31,7 +31,7 @@ func GetUser(c *gin.Context, db *sql.DB) {
|
||||||
users_stats.country, users_stats.show_country
|
users_stats.country, users_stats.show_country
|
||||||
FROM users
|
FROM users
|
||||||
LEFT JOIN users_stats ON users_stats.id = users.id
|
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
|
%s
|
||||||
LIMIT 1`,
|
LIMIT 1`,
|
||||||
mode, mode, mode, mode, mode, mode, mode, mode, whereClause,
|
mode, mode, mode, mode, mode, mode, mode, mode, whereClause,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user