diff --git a/application/models/Oqrs_model.php b/application/models/Oqrs_model.php index cb36e21d..9214a35e 100644 --- a/application/models/Oqrs_model.php +++ b/application/models/Oqrs_model.php @@ -202,7 +202,7 @@ class Oqrs_model extends CI_Model { function search_log_time_date($time, $date, $band, $mode) { $sql = 'select * from ' . $this->config->item('table_name') . ' thcv - join station_profile on thcv.station_id = station_profile.station_id where col_band = \'' . $band . '\' + join station_profile on thcv.station_id = station_profile.station_id where (col_band = \'' . $band . '\' or col_prop_mode = \'' . $band . '\') and date(col_time_on) = \'' . $date . '\' and (col_mode = \'' . $mode . '\' or col_submode = \'' . $mode . '\')