diff --git a/application/models/Oqrs_model.php b/application/models/Oqrs_model.php index c18f15b46..0cc875642 100644 --- a/application/models/Oqrs_model.php +++ b/application/models/Oqrs_model.php @@ -50,7 +50,7 @@ class Oqrs_model extends CI_Model { $callsign = $this->security->xss_clean($callsign); $sql = 'select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '" and col_prop_mode != "SAT"'; - $sql .= ' union select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, "SAT" col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '" and col_prop_mode = "SAT"'; + $sql .= ' union all select lower(col_mode) col_mode, coalesce(col_submode, "") col_submode, "SAT" col_band from ' . $this->config->item('table_name') . ' where station_id = ' . $station_id . ' and col_call ="' . $callsign . '" and col_prop_mode = "SAT"'; $query = $this->db->query($sql);