I am getting an error
Object of class Illuminate\Database\Query\Expression could not be converted to string for following code
$draft=$this->query->whereRaw('t.id IN '.\DB::raw("({$inner_query_draft->toSql()})"))->mergeBindings($inner_query_draft);
I have tried ddSql
and dump
but still the same issue
Should
be
note the query() brackets.