if(!empty($q['query']['action'])) {
$act = $this->escape($q['query']['action']);
- $this->whereAdd("Events.action LIKE '%{$act}%'");
+ $this->whereAdd("{$tn}.action LIKE '%{$act}%'");
}
if(!empty($q['query']['on_table'])) {
$tnb = $this->escape($q['query']['on_table']);
- $this->whereAdd("Events.on_table LIKE '%{$tnb}%'");
+ $this->whereAdd("{$tn}.on_table LIKE '%{$tnb}%'");
}
}