diff --git a/application/controllers/Bkouser.php b/application/controllers/Bkouser.php
index d1a5cee..5ad61da 100644
--- a/application/controllers/Bkouser.php
+++ b/application/controllers/Bkouser.php
@@ -34,7 +34,12 @@ class Bkouser extends Bko_Controller {
public function pastdue(){
$this->load->library('table');
- $mysql = "SELECT * FROM blog_selections";
+ $mysql = "SELECT c.promo, ''||j.title||'
'||j.description AS job_name,j.member_id,c.client_id, c.delivery_date FROM members_jobs_contract c
+ LEFT JOIN members_jobs j ON j.id = c.job_id
+ WHERE c.status IN (1,2)
+ AND c.delivery_date < now()
+ ORDER BY c.id DESC LIMIT 60";
+
$this->table->set_template($this->template);
$query = $this->db->query($mysql);
$data['past_due_table'] = $this->table->generate($query);
diff --git a/application/libraries/Bko_Controller.php b/application/libraries/Bko_Controller.php
index ff89fea..7ae2844 100644
--- a/application/libraries/Bko_Controller.php
+++ b/application/libraries/Bko_Controller.php
@@ -55,9 +55,9 @@ class Bko_Controller extends WRB_Controller {
$this->table->set_template($this->template);
//$mysql = "SElECT added::date||'
'||loc AS dates,email||'
'||firstname||' '||lastname AS Name FROM members ORDER BY id DESC LIMIT 7";
- $mysql = "SELECT email, lastname, firstname, status, added::date, updated,
+ $mysql = "SELECT email, lastname, firstname, phone, status, added::date,
'