diff --git a/app/Models/Common/Item.php b/app/Models/Common/Item.php index 64e5dbf9a..915583c5e 100644 --- a/app/Models/Common/Item.php +++ b/app/Models/Common/Item.php @@ -107,7 +107,7 @@ class Item extends Model return $query; } - return $query->whereIn('type', $type); + return $query->whereIn($this->qualifyColumn('type'), $type); } /**