|
@@ -725,9 +725,7 @@ function refreshPreview() {
|
|
|
$sth = DB::getPDO()->prepare("
|
|
$sth = DB::getPDO()->prepare("
|
|
|
select n.`who`, n.`when`, n.`what`, UNIX_TIMESTAMP(n.last_exec_time) as last_exec_time
|
|
select n.`who`, n.`when`, n.`what`, UNIX_TIMESTAMP(n.last_exec_time) as last_exec_time
|
|
|
from ADMIN_USERS u
|
|
from ADMIN_USERS u
|
|
|
- left join CRM_NOTIFY n on(n.`who` = u.ADM_ACCOUNT
|
|
|
|
|
- and (n.last_exec_time is null or n.last_exec_time < NOW())
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ left join CRM_NOTIFY n on(n.`who` = u.ADM_ACCOUNT)
|
|
|
where u.A_STATUS = 'NORMAL'
|
|
where u.A_STATUS = 'NORMAL'
|
|
|
and u.EMPLOYEE_TYPE = 'Pracownik'
|
|
and u.EMPLOYEE_TYPE = 'Pracownik'
|
|
|
and n.`who` is not null
|
|
and n.`who` is not null
|