From 1e3aab1623441eda3c930875ac473df63575523d Mon Sep 17 00:00:00 2001 From: MagicBot Date: Tue, 23 May 2023 10:03:05 -0400 Subject: [PATCH] Query string updated. --- src/engine/db/handlers/dbContractHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/db/handlers/dbContractHandler.java b/src/engine/db/handlers/dbContractHandler.java index 479695f5..7f543cd3 100644 --- a/src/engine/db/handlers/dbContractHandler.java +++ b/src/engine/db/handlers/dbContractHandler.java @@ -39,7 +39,7 @@ public class dbContractHandler extends dbHandlerBase { return null; try (Connection connection = DbManager.getConnection(); - PreparedStatement preparedStatement = connection.prepareStatement("SELECT `obj_building`.*, `object`.`parent` FROM `object` INNER JOIN `obj_building` ON `obj_building`.`UID` = `object`.`UID` WHERE `object`.`UID` = ?;")) { + PreparedStatement preparedStatement = connection.prepareStatement("SELECT * FROM `static_npc_contract` WHERE `ID` = ?")) { preparedStatement.setInt(1, objectUUID);