Вот что показывает. И даже корзину мою очистил. В чем проблема?
<!--
Tygh\Exceptions\AException
Message
Unknown column ‘instock_sorting’ in ‘field list’ (1054)SELECT SQL_CALC_FOUND_ROWS (CASE WHEN products.parent_product_id 0 THEN products.parent_product_id ELSE products.product_id END) AS product_id, IF(inventory.product_code LIKE ‘%насад%’, inventory.combination, null) AS combination, IF(shared_descr.product_id IS NOT NULL, shared_descr.product, descr1.product) as product, GROUP_CONCAT(products.product_id ORDER BY instock_sorting DESC, products.parent_product_id ASC, products.product_id ASC) AS product_ids, GROUP_CONCAT(products.product_type ORDER BY instock_sorting DESC, products.parent_product_id ASC, products.product_id ASC) AS product_types, GROUP_CONCAT(products.parent_product_id ORDER BY instock_sorting DESC, products.parent_product_id ASC, products.product_id ASC) AS parent_product_ids, products.product_type, products.parent_product_id, prices.ds__privatbank_pp as ds__privatbank_pp, 1 as instock_marker, IF(IF(products.tracking = ‘O’, (SELECT MAX(amount) FROM cscart_product_options_inventory s_inventory WHERE s_inventory.product_id = products.product_id) > 0, products.amount > 0), 1, 0) as instock_sorting FROM cscart_products as products LEFT JOIN cscart_product_options_inventory as inventory ON inventory.product_id = products.product_id LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id AND descr1.lang_code = ‘ru’ LEFT JOIN cscart_product_prices as prices ON prices.product_id = products.product_id AND prices.lower_limit = 1 INNER JOIN cscart_products_categories as products_categories ON products_categories.product_id = products.product_id INNER JOIN cscart_categories ON cscart_categories.category_id = products_categories.category_id AND (cscart_categories.usergroup_ids = ‘’ OR FIND_IN_SET(0, cscart_categories.usergroup_ids) OR FIND_IN_SET(1, cscart_categories.usergroup_ids)) AND cscart_categories.status IN (‘A’, ‘H’) LEFT JOIN cscart_ult_product_descriptions shared_descr ON shared_descr.product_id = products.product_id AND shared_descr.company_id = 1 AND shared_descr.lang_code = ‘ru’ LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = products.product_id WHERE 1 AND (((descr1.search_words LIKE ‘%насад%’) OR descr1.product LIKE ‘%насад%’ OR descr1.short_description LIKE ‘%насад%’ OR descr1.short_description LIKE ‘%насад%’ OR descr1.full_description LIKE ‘%насад%’ OR descr1.full_description LIKE ‘%насад%’ OR (descr1.meta_keywords LIKE ‘%насад%’ OR descr1.meta_description LIKE ‘%насад%’) OR inventory.product_code LIKE ‘%насад%’ OR products.product_code LIKE ‘%насад%’)) AND cscart_categories.company_id = 1 AND (products.usergroup_ids = ‘’ OR FIND_IN_SET(0, products.usergroup_ids) OR FIND_IN_SET(1, products.usergroup_ids)) AND products.status IN (‘A’) AND prices.usergroup_id IN (0, 0, 1) GROUP BY product_id ORDER BY instock_sorting DESC, popularity.total desc, products.product_id ASC LIMIT 0, 32
Error at
app/Tygh/Database/Connection.php, line: 1139
Backtrace
File:app/Tygh/Database/Connection.php
Line:503
Function:throwError
File:app/Tygh/Database/Connection.php
Line:236
Function:query
File:app/functions/fn.database.php
Line:31
Function:getArray
File:app/functions/fn.catalog.php
Line:7406
Function:db_get_array
File:app/functions/fn.catalog.php
Line:7489
Function:{closure}
File:app/controllers/frontend/products.php
Line:43
Function:fn_get_products
File:app/functions/fn.control.php
Line:669
Function:include
File:app/functions/fn.control.php
Line:427
Function:fn_run_controller
File:index.php
Line:56
Function:fn_dispatch
–>