Ребят посдкажите, почему такая конструкция нихера не работает?)
$telInit = History::orderBy('updated_at','asc')->where('a3p', 0)->whereColumn('t2','<','coutlim')->whereHas('Operation', function($q){
$q->whereBetween('created_at',
[now()->subHours(30), now()]);
}, '<', $countLimitSystemDay)->first();