diff --git a/addons/default/visiosoft/cats-module/src/Category/CategoryCollection.php b/addons/default/visiosoft/cats-module/src/Category/CategoryCollection.php index df1d20cd5..cb3856c6c 100644 --- a/addons/default/visiosoft/cats-module/src/Category/CategoryCollection.php +++ b/addons/default/visiosoft/cats-module/src/Category/CategoryCollection.php @@ -18,8 +18,8 @@ class CategoryCollection extends EntryCollection for ($i = 0; $i <= $counter; $i++) { $data = CategoryModel::query() - ->where('parent_category_id', $id) - ->where('deleted_at', null) + ->where('cats_category.parent_category_id', $id) + ->where('cats_category.deleted_at', null) ->select('cats_category.id', 'cats_category.parent_category_id') ->first(); if ($data != "") {