Database error: 5 : Out of memory (Needed 2095352 bytes)
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='SE' 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 cscart_product_sales.category_id IN ('95') 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/u/u2954004/www/index.php
Line:69
Function:include
File:/home/u/u2954004/www/include/common/customer_common.php
Line:36
Function:include
File:/home/u/u2954004/www/include/common/categories.php
Line:60
Function:include
File:/home/u/u2954004/www/core/include_addons.php
Line:48
Function:include
File:/home/u/u2954004/www/addons/bestsellers/include/common/categories.php
Line:38
Function:fn_get_bestsellers
File:/home/u/u2954004/www/addons/bestsellers/func.php
Line:95
Function:db_get_array
File:/home/u/u2954004/www/core/fn_database.php
Line:42
Function:db_query
File:/home/u/u2954004/www/core/db_mysql.php
Line:94
Function:db_debug_error