Tygh\Exceptions\AException

Message

Table './admin_admin_cc/cscart_product_features_values' is marked as crashed and should be repaired (145)

SELECT SQL_CALC_FOUND_ROWS products.product_id, IF(shared_descr.product_id IS NOT NULL, shared_descr.product, descr1.product) as product, products.product_type, products.parent_product_id FROM cscart_products as products INNER JOIN cscart_product_features_values as c_var ON c_var.product_id = products.product_id AND c_var.lang_code = 'ru' AND c_var.variant_id = 149867 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' WHERE 1 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) AND products.parent_product_id = 0 GROUP BY products.product_id ORDER BY product asc, products.product_id ASC LIMIT 0, 18

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:7460
Function:db_get_array
File:app/functions/fn.catalog.php
Line:7543
Function:{closure}
File:app/controllers/frontend/product_features.php
Line:188
Function:fn_get_products
File:app/functions/fn.control.php
Line:665
Function:include
File:app/functions/fn.control.php
Line:423
Function:fn_run_controller
File:index.php
Line:29
Function:fn_dispatch