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 ('1377','1376','1375','1374','1373','1372','1371','1370','1369','1368','1367','1366','1365','1364','1384','1383','1382','1381','1380','1379','1378','1405','1404','1403','1402','1401','1400','1399','241','240','239','238','237','236','235','1986','1985','1984','1983','1982','1981','1980','1979','1978','1977','1976','1975','1974','1973','1972','1971','1970','1969','842','841','840','839','838','837','836','835','2432','2431','2430','2429','2428','2427','2426','2467','2466','2465','2464','2463','2462','2461','2460','2459','2458','2457','2456','2455','2454','2453','2452','1426','1425','1424','1423','1422','1421','1420','1363','1362','1361','1360','1359','1358','1357','1356','1355','1354','1353','1352','1351','1350','1349','1348','1347','1346','1345','1344','1343','2072','2071','2070','2069','2068','2067','2066','2065','2064','2063','2062','2061','2060','2059','1419','1418','1417','1416','1415','1414','1413','1412','1411','1410','1409','1408','1407','1406','1398','1397','1396','1395','1394','1393','1392','1391','1390','1389','1388','1387','1386','1385','2418','2417','2416','2415','2414','2413','2412','2411','2410','2409','2408','2407','2406','2405','2404','2403','2402','2401','2400','2399','2398','2397','2396','2395','2394','2393','2392','2391','2390','2389','2388','2387','2386','2385','2384','2383','2382','2381','2380','2379','2378','2377','2376','2375','2374','2373')
        AND catalog_product_index_price.customer_group_id = 0
order by field( catalog_product_flat_1.entity_id,'1377','1376','1375','1374','1373','1372','1371','1370','1369','1368','1367','1366','1365','1364','1384','1383','1382','1381','1380','1379','1378','1405','1404','1403','1402','1401','1400','1399','241','240','239','238','237','236','235','1986','1985','1984','1983','1982','1981','1980','1979','1978','1977','1976','1975','1974','1973','1972','1971','1970','1969','842','841','840','839','838','837','836','835','2432','2431','2430','2429','2428','2427','2426','2467','2466','2465','2464','2463','2462','2461','2460','2459','2458','2457','2456','2455','2454','2453','2452','1426','1425','1424','1423','1422','1421','1420','1363','1362','1361','1360','1359','1358','1357','1356','1355','1354','1353','1352','1351','1350','1349','1348','1347','1346','1345','1344','1343','2072','2071','2070','2069','2068','2067','2066','2065','2064','2063','2062','2061','2060','2059','1419','1418','1417','1416','1415','1414','1413','1412','1411','1410','1409','1408','1407','1406','1398','1397','1396','1395','1394','1393','1392','1391','1390','1389','1388','1387','1386','1385','2418','2417','2416','2415','2414','2413','2412','2411','2410','2409','2408','2407','2406','2405','2404','2403','2402','2401','2400','2399','2398','2397','2396','2395','2394','2393','2392','2391','2390','2389','2388','2387','2386','2385','2384','2383','2382','2381','2380','2379','2378','2377','2376','2375','2374','2373')

#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+hotf...', 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}