diff --git a/gw-record.php b/gw-record.php
index fb2a8e4..1eb4d7f 100644
--- a/gw-record.php
+++ b/gw-record.php
@@ -18,7 +18,7 @@ if ($con->connect_errno > 0){
}
echo '';
echo '
At ';
-$sqlmaplocation = "SELECT * FROM `treasurelocation` WHERE `treasureid` = $location";
+$sqlmaplocation = "SELECT * FROM `treasuredata` WHERE `treasureid` = $location";
if (!$result = $con->query($sqlmaplocation)){
die ('There was an error running the query [' . $con->error . ']');
}
@@ -152,4 +152,4 @@ if ($whatdropped == "1"){