diff --git a/src/nu/nerd/modreq/database/RequestTable.java b/src/nu/nerd/modreq/database/RequestTable.java index 1219d75..db714b6 100644 --- a/src/nu/nerd/modreq/database/RequestTable.java +++ b/src/nu/nerd/modreq/database/RequestTable.java @@ -46,7 +46,7 @@ public List getMissedClosedRequests(UUID uuid) { public int getNumRequestFromUser(UUID uuid) { int retVal = 0; - Query query = plugin.getDatabase().find(Request.class).where().ieq("playerName", uuid.toString()).in("status", RequestStatus.OPEN).query(); + Query query = plugin.getDatabase().find(Request.class).where().ieq("playerUUID", uuid.toString()).in("status", RequestStatus.OPEN).query(); if (query != null) { retVal = query.findRowCount();