SQLSTATE[42S22]: Column not found: 1054 Unknown column 'type_objet_value' in 'field list', query was: /* 
 * Copyright (C) 2018 Yo Advertising.
 * Author : Jaïr Benzedame
 */
/**
 * Author:  comed
 * Created: 16 nov. 2018
 */

SELECT 
    catalog_product_flat_1.entity_id,
    image,
    sku,
    url_path,
    name,
    type_objet,
    type_objet_value,
    color,
    color_value,
    manufacturer,
    manufacturer_value,
    description,
    catalog_product_index_price.price,
    catalog_product_index_price.min_price,
    qty + ifnull(qty_conf,0) AS qty_tot
FROM
    catalog_product_flat_1
        LEFT JOIN
    catalog_product_index_price ON catalog_product_index_price.entity_id = catalog_product_flat_1.entity_id
        LEFT JOIN
    cataloginventory_stock_item ON catalog_product_flat_1.entity_id = cataloginventory_stock_item.product_id
        LEFT JOIN
    (SELECT 
        parent_id, SUM(qty) AS qty_conf
    FROM
        catalog_product_super_link
    JOIN cataloginventory_stock_item ON cataloginventory_stock_item.product_id = catalog_product_super_link.product_id
    GROUP BY catalog_product_super_link.parent_id) tt ON tt.parent_id = catalog_product_flat_1.entity_id
WHERE
    catalog_product_flat_1.entity_id IN ('874','873','872','871','870','869','868','867','810','809','808','807','806','805','804','803','802','801','664','663','662','661','660','659','658','657','656','655','654','653','652','651','606','605','604','603','602','601','600','599','598','597','596','595','594','593','2512','2511','2510','2509','2508','2507','2506','2505','2504','2503','2502','2501','2432','2431','2430','2429','2428','2427','2426','2425','2424','2423','2422','2421','2420','2419','1807','1806','1805','1804','1803','1224','1223','1222','1221','1220','1192','1191','1190','1189','1188','1187','1186','1185','1184','1183','1182','1181','1180','1179','1178','1166','1165','1164','1163','1162','1161','1160','1159','1158','1157','1156','1155','1154','1153','1086','1085','1084','1083','1082','1081','1080','1079','1078','1077','1076','1075','1074','1073','1072','1071','1070','1069','1068','1067','1066','1065','1064','1063','1062','1061','2525','2524','2523','2522','2521','2520','2519','2518','2517','2516','2515','2514','2513','650','649','648','647','646','645','644','643','642','641','640','639','638','637','636','635','634','633','632','631','630','629','99','98','97','96','95','94','93','92','91','90','89','88','87','866','865','864','863','862','861','86','85','84','83','82','81','80','79','78')
        AND catalog_product_index_price.customer_group_id = 0
order by field( catalog_product_flat_1.entity_id,'874','873','872','871','870','869','868','867','810','809','808','807','806','805','804','803','802','801','664','663','662','661','660','659','658','657','656','655','654','653','652','651','606','605','604','603','602','601','600','599','598','597','596','595','594','593','2512','2511','2510','2509','2508','2507','2506','2505','2504','2503','2502','2501','2432','2431','2430','2429','2428','2427','2426','2425','2424','2423','2422','2421','2420','2419','1807','1806','1805','1804','1803','1224','1223','1222','1221','1220','1192','1191','1190','1189','1188','1187','1186','1185','1184','1183','1182','1181','1180','1179','1178','1166','1165','1164','1163','1162','1161','1160','1159','1158','1157','1156','1155','1154','1153','1086','1085','1084','1083','1082','1081','1080','1079','1078','1077','1076','1075','1074','1073','1072','1071','1070','1069','1068','1067','1066','1065','1064','1063','1062','1061','2525','2524','2523','2522','2521','2520','2519','2518','2517','2516','2515','2514','2513','650','649','648','647','646','645','644','643','642','641','640','639','638','637','636','635','634','633','632','631','630','629','99','98','97','96','95','94','93','92','91','90','89','88','87','866','865','864','863','862','861','86','85','84','83','82','81','80','79','78')

#0 /home/www/worldstyle/www/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home/www/worldstyle/www/app/code/core/Zend/Db/Statement.php(311): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home/www/worldstyle/www/lib/Zend/Db/Adapter/Abstract.php(480): Zend_Db_Statement->execute(Array)
#3 /home/www/worldstyle/www/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('/* \n * Copyrigh...', Array)
#4 /home/www/worldstyle/www/lib/Varien/Db/Adapter/Pdo/Mysql.php(504): Zend_Db_Adapter_Pdo_Abstract->query('/* \n * Copyrigh...', Array)
#5 /home/www/worldstyle/www/lib/Zend/Db/Adapter/Abstract.php(737): Varien_Db_Adapter_Pdo_Mysql->query('/* \n * Copyrigh...', Array)
#6 /home/www/worldstyle/www/app/code/local/Jair/Search/Helper/Data.php(103): Zend_Db_Adapter_Abstract->fetchAll('/* \n * Copyrigh...')
#7 /home/www/worldstyle/www/app/code/local/Jair/Search/Block/Redir.php(35): Jair_Search_Helper_Data->factory('+radiateur+sech...', false, true)
#8 /home/www/worldstyle/www/app/design/frontend/master/default/template/catalogsearch/redir.phtml(2): Jair_Search_Block_Redir->getProducts()
#9 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Template.php(244): include('/home/www/world...')
#10 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Template.php(276): Mage_Core_Block_Template->fetchView('frontend/master...')
#11 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Template.php(290): Mage_Core_Block_Template->renderView()
#12 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Abstract.php(852): Mage_Core_Block_Template->_toHtml()
#13 /home/www/worldstyle/www/app/code/core/Mage/Core/Block/Text/List.php(43): Mage_Core_Block_Abstract->toHtml()
#14 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Abstract.php(852): Mage_Core_Block_Text_List->_toHtml()
#15 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Abstract.php(580): Mage_Core_Block_Abstract->toHtml()
#16 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Abstract.php(527): Mage_Core_Block_Abstract->_getChildHtml('content', true)
#17 /home/www/worldstyle/www/app/design/frontend/master/default/template/page/1column.phtml(27): Mage_Core_Block_Abstract->getChildHtml('content')
#18 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Template.php(244): include('/home/www/world...')
#19 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Template.php(276): Mage_Core_Block_Template->fetchView('frontend/master...')
#20 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Template.php(290): Mage_Core_Block_Template->renderView()
#21 /home/www/worldstyle/www/app/code/local/Mage/Core/Block/Abstract.php(852): Mage_Core_Block_Template->_toHtml()
#22 /home/www/worldstyle/www/app/code/local/Inchoo/PHP7/Model/Layout.php(15): Mage_Core_Block_Abstract->toHtml()
#23 /home/www/worldstyle/www/app/code/core/Mage/Core/Controller/Varien/Action.php(390): Inchoo_PHP7_Model_Layout->getOutput()
#24 /home/www/worldstyle/www/app/code/local/Jair/Search/controllers/IndexController.php(14): Mage_Core_Controller_Varien_Action->renderLayout()
#25 /home/www/worldstyle/www/app/code/core/Mage/Core/Controller/Varien/Action.php(418): Jair_Search_IndexController->indexAction()
#26 /home/www/worldstyle/www/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index')
#27 /home/www/worldstyle/www/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#28 /home/www/worldstyle/www/app/code/core/Mage/Core/Model/App.php(365): Mage_Core_Controller_Varien_Front->dispatch()
#29 /home/www/worldstyle/www/app/Mage.php(686): Mage_Core_Model_App->run(Array)
#30 /home/www/worldstyle/www/index.php(87): Mage::run('', 'store')
#31 {main}