Fix sql query for fetching name of user account

This commit is contained in:
Keir Nellyer 2016-06-01 16:51:22 +01:00
parent 01855ba1ce
commit 9465ab40ab

View File

@ -75,7 +75,7 @@ public class ReportRepository extends MinecraftRepository
" AND reportReasons.reporterId = ?" +
" AND reportResults.resultId = ?;";
private static final String GET_ACCOUNT_NAME = "SELECT id, name` FROM accounts" +
private static final String GET_ACCOUNT_NAME = "SELECT id, `name` FROM accounts" +
" WHERE id = ?" +
" LIMIT 1;";