diff --git a/backend/api/routes/costData.py b/backend/api/routes/costData.py
index 35065aef6bbf0edd186df1c06b99eccd7054a95a..5ec5c7736f3743971cab90e85814ada1f052644b 100644
--- a/backend/api/routes/costData.py
+++ b/backend/api/routes/costData.py
@@ -12,7 +12,7 @@ def get_costData():
 def get_data():
     conn = get_db_connection()
     cur = conn.cursor()
-    cur.execute('SELECT * FROM total_cost_watts;')
+    cur.execute('SELECT * FROM total_cost_watts_water;')
     all_costData = cur.fetchall()
     cur.close()
     return all_costData
\ No newline at end of file