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 ('2451','2450','2449','2448','2447','2446','2445','2444','2443','2442','2441','2440','2320','2319','2318','2317','2316','2315','2314','2313','2312','2311','2310','2309','2308','2307','2306','2305','2304','2303','2302','2301','2300','2299','2298','2297','2296','2295','2294','2293','2292','2291','2290','2289','2288','2287','2286','2285','2284','2283','2282','2281','2280','2279','2278','2277','2276','2275','2274','2273','2272','2271','2270','2269','2268','2267','2266','2265','2264','2263','2262','2261','2260','2259','2258','2257','2256','2255','2254','2253','2252','2251','2250','2249','2248','2247','2246','2245','2244','2243','2242','2241','2240','2239','2238','2237','2236','2235','2234','2233','2232','2231','2230','2229','2228','2227','2226','2225','2224','2223','2222','2221','2220','2219','2218','2217','2216','2215','2214','2213','2212','2211','2210','2209','2208','2207','2206','2205','2204','2203','2202','2201','2200','2199','2198','2197','2196','2195','2194','2193','2192','2191','2190','2189','2188','2187','2186','2185','2184','2183','2182','2181','2180','2179','2178','2177','2176','2175','2174','2173','2172','2171','2170','2169','2168','2167','2166','2165','2164','2163','2162','2161','2160','2159','2158','2157','2156','2155','2154','2153','2152','2151','2150','2149','2148','2147','2146','2145','2144','2143','2142','2141','2140','2139','2138','2137','2136','2135','2134','2133')
        AND catalog_product_index_price.customer_group_id = 0
order by field( catalog_product_flat_1.entity_id,'2451','2450','2449','2448','2447','2446','2445','2444','2443','2442','2441','2440','2320','2319','2318','2317','2316','2315','2314','2313','2312','2311','2310','2309','2308','2307','2306','2305','2304','2303','2302','2301','2300','2299','2298','2297','2296','2295','2294','2293','2292','2291','2290','2289','2288','2287','2286','2285','2284','2283','2282','2281','2280','2279','2278','2277','2276','2275','2274','2273','2272','2271','2270','2269','2268','2267','2266','2265','2264','2263','2262','2261','2260','2259','2258','2257','2256','2255','2254','2253','2252','2251','2250','2249','2248','2247','2246','2245','2244','2243','2242','2241','2240','2239','2238','2237','2236','2235','2234','2233','2232','2231','2230','2229','2228','2227','2226','2225','2224','2223','2222','2221','2220','2219','2218','2217','2216','2215','2214','2213','2212','2211','2210','2209','2208','2207','2206','2205','2204','2203','2202','2201','2200','2199','2198','2197','2196','2195','2194','2193','2192','2191','2190','2189','2188','2187','2186','2185','2184','2183','2182','2181','2180','2179','2178','2177','2176','2175','2174','2173','2172','2171','2170','2169','2168','2167','2166','2165','2164','2163','2162','2161','2160','2159','2158','2157','2156','2155','2154','2153','2152','2151','2150','2149','2148','2147','2146','2145','2144','2143','2142','2141','2140','2139','2138','2137','2136','2135','2134','2133')

#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('+618+radiateur+...', 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}