diff --git a/src/QueryDataTable.php b/src/QueryDataTable.php index e1418f0c..270a5d19 100644 --- a/src/QueryDataTable.php +++ b/src/QueryDataTable.php @@ -162,7 +162,7 @@ protected function prepareCountQuery() */ protected function isComplexQuery($builder) { - return Str::contains(Str::lower($builder->toSql()), ['union', 'having', 'distinct', 'order by', 'group by', 'join']); + return Str::contains(Str::lower($builder->toSql()), ['union', 'having', 'distinct', 'order by', 'group by']); } /**