diff --git a/api/application/controllers/PD_Controller.php b/api/application/controllers/PD_Controller.php
index f9ef0466..32eebcbb 100644
--- a/api/application/controllers/PD_Controller.php
+++ b/api/application/controllers/PD_Controller.php
@@ -1774,7 +1774,6 @@ class PD_Controller extends REST_Controller {
$data['dataStatus'] = false;
$data['status'] = REST_Controller::HTTP_NO_CONTENT;
$this->response($data,REST_Controller::HTTP_OK);
-
}
}
diff --git a/api/application/models/PD_Model.php b/api/application/models/PD_Model.php
index 680fb4e8..50d00fc7 100644
--- a/api/application/models/PD_Model.php
+++ b/api/application/models/PD_Model.php
@@ -46,7 +46,7 @@ class PD_Model extends SPARQ_Model {
if($lenderid != "" || $lenderid != null)
{
- $this->db->WHERE('PDTRIGGER.fk_lender_id',$lenderid);
+ $this->db->WHERE('PDTRIGGER.fk_createdby',$lenderid);
}
if($status != "" || $status != null)
diff --git a/api/application/views/report_templates/JSONTOREPORT.php b/api/application/views/report_templates/JSONTOREPORT.php
index f60c0638..ca84f1f3 100644
--- a/api/application/views/report_templates/JSONTOREPORT.php
+++ b/api/application/views/report_templates/JSONTOREPORT.php
@@ -1395,9 +1395,14 @@ defined('BASEPATH') OR exit('No direct script access allowed');