if ($whereAdd !== false) {
$w->whereAdd($whereAdd );
}
+ $w->ontable = $ontable;
//$w->selectAdd();
//$w->selectAdd('distinct(person_id) as person_id');
$nn->person_id = $w->person_id;
$nf = clone($nn);
- $nf->whereAdd('sent < act_when - INTERVAL 1 HOUR');
+ $nf->whereAdd("sent < '2000-01-01'");
if ($nf->count()) {
// we have a item in the queue for that waiting to be sent..
continue;
$w->whereAdd('person_id != '. (int) $event->person_id);
-
-
+
$watches = $w->fetchAll();
//print_R($watches);exit;
// does this watch already have a flag...
$nf = clone($n);
- $nf->whereAdd('sent < act_when');
+ $nf->whereAdd("sent ><'2000-01-01'");
+ //$nf->whereAdd('sent < act_when');
if ($nf->count()) {
// we have a item in the queue for that waiting to be sent..
continue;