Update Logbook_model.php
这个提交包含在:
父节点
72ea1e3353
当前提交
3f8f81364b
共有 1 个文件被更改,包括 6 次插入 和 6 次删除
|
|
@ -1945,13 +1945,13 @@ class Logbook_model extends CI_Model
|
|||
$location_list = "'" . implode("','", $logbooks_locations_array) . "'";
|
||||
|
||||
$sql = "SELECT * FROM ( select * from " . $this->config->item('table_name') . "
|
||||
WHERE station_id IN(" . $location_list . ")
|
||||
order by col_time_on desc, col_primary_key desc
|
||||
limit " . $num .
|
||||
WHERE station_id IN(" . $location_list . ")
|
||||
order by col_time_on desc, col_primary_key desc
|
||||
limit " . $num .
|
||||
") hrd
|
||||
LEFT JOIN station_profile ON station_profile.station_id = hrd.station_id // Changed to LEFT JOIN
|
||||
LEFT JOIN dxcc_entities ON hrd.col_dxcc = dxcc_entities.adif
|
||||
order by col_time_on desc, col_primary_key desc";
|
||||
JOIN station_profile ON station_profile.station_id = hrd.station_id
|
||||
LEFT JOIN dxcc_entities ON hrd.col_dxcc = dxcc_entities.adif
|
||||
order by col_time_on desc, col_primary_key desc";
|
||||
|
||||
$query = $this->db->query($sql);
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用