SELECT users.id, users.username, users.realname, users.Skin, luckperms_players.uuid, luckperms_players.primary_group, discordsrv_accounts.discord
FROM users
JOIN luckperms_players ON users.username = luckperms_players.username
JOIN discordsrv_accounts ON luckperms_players.uuid = discordsrv_accounts.uuid
WHERE users.username = 'test_api1'