diff --git a/database/getChatroomMessagesAPI.php b/database/getChatroomMessagesAPI.php index 0888996..9f7fad8 100644 --- a/database/getChatroomMessagesAPI.php +++ b/database/getChatroomMessagesAPI.php @@ -6,7 +6,7 @@ $conn = newConnection(); $stmt = $conn->prepare(" SELECT c.id, c.content, u.username FROM chats c - JOIN users u ON c.userId = u.uid + JOIN users u ON c.userId = u.id WHERE u.banned = 0 AND c.deleted = 0 ORDER BY c.id ASC LIMIT 50 ");