From f7cb30e3b9f9d901f72c93b646506180bcef61da Mon Sep 17 00:00:00 2001 From: Andreas Date: Wed, 19 Aug 2020 17:30:37 +0200 Subject: [PATCH] Had to remove band from query as well. --- application/models/Was.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Was.php b/application/models/Was.php index 6f246eb9..bb10b21d 100644 --- a/application/models/Was.php +++ b/application/models/Was.php @@ -153,7 +153,7 @@ class was extends CI_Model { function getSummaryByBand($band, $station_id) { - $sql = "SELECT thcv.col_band, count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv"; + $sql = "SELECT count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv"; $sql .= " where station_id = " . $station_id; @@ -173,7 +173,7 @@ class was extends CI_Model { function getSummaryByBandConfirmed($band, $station_id) { - $sql = "SELECT thcv.col_band, count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv"; + $sql = "SELECT count(distinct thcv.col_state) as count FROM " . $this->config->item('table_name') . " thcv"; $sql .= " where station_id = " . $station_id;