Database error: 145 : Table './modest_modestfashion/cscart_product_descriptions' is marked as crashed and should be repaired
Invalid query: SELECT cscart_product_descriptions.product_id, cscart_product_descriptions.product, SUM(cscart_product_sales.amount) as amount FROM cscart_product_sales LEFT JOIN cscart_product_descriptions ON cscart_product_descriptions.product_id=cscart_product_sales.product_id AND cscart_product_descriptions.lang_code='EN' INNER JOIN cscart_products ON cscart_products.product_id=cscart_product_descriptions.product_id AND cscart_products.avail IN ('Y') LEFT JOIN cscart_product_options_inventory as inventory ON inventory.product_id=cscart_products.product_id WHERE 1 AND IF(cscart_products.tracking='O', inventory.amount>0, cscart_products.amount>0) GROUP BY cscart_product_sales.product_id ORDER BY amount DESC, cscart_product_descriptions.product ASC LIMIT 10


Backtrace:
File:/home/modest/public_html/index.php
Line:69
Function:include
File:/home/modest/public_html/include/common/customer_common.php
Line:36
Function:include
File:/home/modest/public_html/include/common/categories.php
Line:60
Function:include
File:/home/modest/public_html/core/include_addons.php
Line:48
Function:include
File:/home/modest/public_html/addons/bestsellers/include/common/categories.php
Line:38
Function:fn_get_bestsellers
File:/home/modest/public_html/addons/bestsellers/func.php
Line:95
Function:db_get_array
File:/home/modest/public_html/core/fn_database.php
Line:42
Function:db_query
File:/home/modest/public_html/core/db_mysql41.php
Line:72
Function:db_debug_error