From 64278bf121f875e8bdce49281f34872ab8e3eb90 Mon Sep 17 00:00:00 2001 From: int2001 Date: Thu, 13 Jul 2023 06:23:05 +0000 Subject: [PATCH] one should include user_id into the Query --- application/models/Logbook_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Logbook_model.php b/application/models/Logbook_model.php index 97b83197..f0e56177 100755 --- a/application/models/Logbook_model.php +++ b/application/models/Logbook_model.php @@ -2703,7 +2703,7 @@ class Logbook_model extends CI_Model { function lotw_last_qsl_date($user_id) { $sql="SELECT MAX(COALESCE(COL_LOTW_QSLRDATE, '1900-01-01 00:00:00')) MAXDATE, ".$this->config->item('table_name').".station_id FROM ".$this->config->item('table_name')." INNER JOIN station_profile ON (".$this->config->item('table_name').".station_id = station_profile.station_id) - WHERE station_profile.user_id=6 and COL_LOTW_QSLRDATE is not null"; + WHERE station_profile.user_id=".$user_id." and COL_LOTW_QSLRDATE is not null"; $query = $this->db->query($sql); $row = $query->row();