Hi Team,
We are facing the following types of issue.
2 exception(s): Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'seller_id' in group statement is ambiguous, query was: SELECT `e`.`entity_id` FROM `catalog_product_entity` AS `e` LEFT JOIN `catalog_product_entity_int` AS `at_status_default` ON (`at_status_default`.`entity_id` = `e`.`entity_id`) AND (`at_status_default`.`attribute_id` = '97') AND `at_status_default`.`store_id` = 0 LEFT JOIN `catalog_product_entity_int` AS `at_status` ON (`at_status`.`entity_id` = `e`.`entity_id`) AND (`at_status`.`attribute_id` = '97') AND (`at_status`.`store_id` = 1) LEFT JOIN `catalog_product_entity_int` AS `at_visibility_default` ON (`at_visibility_default`.`entity_id` = `e`.`entity_id`) AND (`at_visibility_default`.`attribute_id` = '99') AND `at_visibility_default`.`store_id` = 0 LEFT JOIN `catalog_product_entity_int` AS `at_visibility` ON (`at_visibility`.`entity_id` = `e`.`entity_id`) AND (`at_visibility`.`attribute_id` = '99') AND (`at_visibility`.`store_id` = 1) INNER JOIN `catalog_product_website` AS `cpw` ON cpw.product_id = e.entity_id INNER JOIN `marketplace_product` AS `mpro` ON mpro.mageproduct_id = e.entity_id INNER JOIN `marketplace_userdata` AS `mmu` ON mmu.seller_id = mpro.seller_id INNER JOIN `customer_grid_flat` AS `cgf` ON mpro.seller_id = cgf.entity_id AND cgf.website_id= 1 INNER JOIN `cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id WHERE (IF(at_status.value_id > 0, at_status.value, at_status_default.value) = 1) AND (IF(at_visibility.value_id > 0, at_visibility.value, at_visibility_default.value) = 4) AND (cpw.website_id = 1) AND (mmu.is_seller = 1) AND (stock_status_index.stock_status = 1) GROUP BY `seller_id` Exception #1 (PDOException): SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'seller_id' in group statement is ambiguous Exception #0 (Zend_Db_Statement_Exception): SQLSTATE[23000]: Integrity constraint violation: 1052 Column 'seller_id' in group statement is ambiguous, query was: SELECT `e`.`entity_id` FROM `catalog_product_entity` AS `e` LEFT JOIN `catalog_product_entity_int` AS `at_status_default` ON (`at_status_default`.`entity_id` = `e`.`entity_id`) AND (`at_status_default`.`attribute_id` = '97') AND `at_status_default`.`store_id` = 0 LEFT JOIN `catalog_product_entity_int` AS `at_status` ON (`at_status`.`entity_id` = `e`.`entity_id`) AND (`at_status`.`attribute_id` = '97') AND (`at_status`.`store_id` = 1) LEFT JOIN `catalog_product_entity_int` AS `at_visibility_default` ON (`at_visibility_default`.`entity_id` = `e`.`entity_id`) AND (`at_visibility_default`.`attribute_id` = '99') AND `at_visibility_default`.`store_id` = 0 LEFT JOIN `catalog_product_entity_int` AS `at_visibility` ON (`at_visibility`.`entity_id` = `e`.`entity_id`) AND (`at_visibility`.`attribute_id` = '99') AND (`at_visibility`.`store_id` = 1) INNER JOIN `catalog_product_website` AS `cpw` ON cpw.product_id = e.entity_id INNER JOIN `marketplace_product` AS `mpro` ON mpro.mageproduct_id = e.entity_id INNER JOIN `marketplace_userdata` AS `mmu` ON mmu.seller_id = mpro.seller_id INNER JOIN `customer_grid_flat` AS `cgf` ON mpro.seller_id = cgf.entity_id AND cgf.website_id= 1 INNER JOIN `cataloginventory_stock_status` AS `stock_status_index` ON e.entity_id = stock_status_index.product_id WHERE (IF(at_status.value_id > 0, at_status.value, at_status_default.value) = 1) AND (IF(at_visibility.value_id > 0, at_visibility.value, at_visibility_default.value) = 4) AND (cpw.website_id = 1) AND (mmu.is_seller = 1) AND (stock_status_index.stock_status = 1) GROUP BY `seller_id` <pre>#1 Magento\Framework\DB\Statement\Pdo\Mysql->_execute() called at [vendor/magento/zendframework1/library/Zend/Db/Statement.php:303] #2 Zend_Db_Statement->execute() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:480] #3 Zend_Db_Adapter_Abstract->query() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Pdo/Abstract.php:238] #4 Zend_Db_Adapter_Pdo_Abstract->query() called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:560] #5 Magento\Framework\DB\Adapter\Pdo\Mysql->_query() called at [vendor/magento/framework/DB/Adapter/Pdo/Mysql.php:627] #6 Magento\Framework\DB\Adapter\Pdo\Mysql->query() called at [generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php:95] #7 Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->query() called at [vendor/magento/zendframework1/library/Zend/Db/Adapter/Abstract.php:794] #8 Zend_Db_Adapter_Abstract->fetchCol() called at [generated/code/Magento/Framework/DB/Adapter/Pdo/Mysql/Interceptor.php:1112] #9 Magento\Framework\DB\Adapter\Pdo\Mysql\Interceptor->fetchCol() called at [vendor/magento/module-catalog/Model/ResourceModel/Product/Collection.php:1289] #10 Magento\Catalog\Model\ResourceModel\Product\Collection->getAllIds() called at [generated/code/Webkul/Marketplace/Model/Rewrite/Catalog/ResourceModel/Product/Collection/Interceptor.php:275]
I am giving you the url https://harakat.vrinsoft.in/marketplace/
can you please look into it.?
-
Thank you