Nasty SMTP Error...

When i log into my admin panel and click on catalog, then products to load all of my products… I get this nasty error… Some info would be nice on how to fix this…

Database error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘/tmp/#sql_5b42_0’ at line 1 (1064)

Invalid query: SELECT SQL_CALC_FOUND_ROWS products.product_id, descr1.product as product, products.tracking, products.feature_comparison, products.zero_price_action, products.product_type, products.tax_ids, products.weight, GROUP_CONCAT(IF(products_categories.link_type = ‘M’, CONCAT(products_categories.category_id, ‘M’), products_categories.category_id)) as category_ids, min_qty, max_qty, products.qty_step, products.list_qty_count, products.is_edp, avail_since, buy_in_advance, as popularity, products.product_code, products.amount, MIN(prices.price) as price, products.status, products.list_price, descr1.short_description, IF(descr1.short_description = ‘’, descr1.full_description, ‘’) as full_description, as seo_name FROM cscart_products as products LEFT JOIN cscart_product_descriptions as descr1 ON descr1.product_id = products.product_id AND descr1.lang_code = ‘EN’ LEFT JOIN cscart_product_popularity as popularity ON popularity.product_id = products.product_id LEFT JOIN cscart_product_prices as prices ON prices.product_id = products.product_id AND prices.lower_limit = 1 LEFT JOIN cscart_product_prices as prices_2 ON prices.product_id = prices_2.product_id AND prices_2.lower_limit = 1 AND prices_2.price < prices.price AND prices_2.usergroup_id IN (0) 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 LEFT JOIN cscart_product_sales ON cscart_product_sales.product_id = products.product_id AND cscart_product_sales.category_id = products_categories.category_id LEFT JOIN cscart_seo_names ON cscart_seo_names.object_id = products.product_id AND cscart_seo_names.type = ‘p’ AND cscart_seo_names.dispatch = ‘’ AND cscart_seo_names.lang_code = ‘EN’ WHERE 1 AND prices.usergroup_id IN (0) AND prices_2.price IS NULL GROUP BY products.product_id ORDER BY products_categories.position asc LIMIT 0, 10


Backtrace: File: /home/bigjmart/public_html/core/fn.database.php

Line: 310

Function: db_error

File: /home/bigjmart/public_html/core/fn.database.php

Line: 37

Function: db_query

File: /home/bigjmart/public_html/core/fn.catalog.php

Line: 3140

Function: db_get_array

File: /home/bigjmart/public_html/controllers/admin/products.php

Line: 489

Function: fn_get_products

File: /home/bigjmart/public_html/core/fn.control.php

Line: 529

Function: include

File: /home/bigjmart/public_html/core/fn.control.php

Line: 392

Function: fn_run_controller

File: /home/bigjmart/public_html/admin.php

Line: 27

Function: fn_dispatch

What version of MySQL are you running?

I have no idea… how would i find out?