Fatal error: Uncaught TypeError: Argument 1 passed to Magento\Catalog\Model\ResourceModel\Product\Collection::getEntityPkName() must be an instance of Magento\Eav\Model\Entity\AbstractEntity, instance of Magento\Catalog\Model\ResourceModel\Product\Flat given, called in /home/odysseemgo/www/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php on line 1377 and defined in /home/odysseemgo/www/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:1586 Stack trace: #0 /home/odysseemgo/www/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1377): Magento\Catalog\Model\ResourceModel\Product\Collection->getEntityPkName(Object(Magento\Catalog\Model\ResourceModel\Product\Flat)) #1 /home/odysseemgo/www/vendor/magento/module-eav/Model/Entity/Collection/AbstractCollection.php(1485): Magento\Eav\Model\Entity\Collection\AbstractCollection->_addAttributeJoin('status', 'inner') #2 /home/odysseemgo/www/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php(1536) in /home/odysseemgo/www/vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php on line 1586