QUERY: SELECT
p.products_id,
p.products_model,
p.label_ids,
p.main_category,
p.products_ean,
p.products_fsk18,
p.products_quantity,
p.products_quantity_min,
p.products_price,
p.products_tax_class_id,
p.products_image,
p.products_vpe,
p.products_vpe_status,
p.products_vpe_value,
p.products_currency,
p.products_page_url,
p.bonus_add,
p.video,
p.show_video,
p.kit_products,
p.kit_set,
pd.products_short_description,
p.rev_total,
p.rev_rating,
pd.products_name,
p.products_shippingtime,
m.manufacturers_name,
p.products_weight,
pd.products_short_description,
pd.products_description,
p.manufacturers_id,
IF(s.status, s.specials_new_products_price, 0) as specials_new_products_price,
p.products_discount_allowed
FROM
products p
LEFT JOIN specials s on p.products_id = s.products_id
LEFT JOIN manufacturers m on p.manufacturers_id = m.manufacturers_id
JOIN products_description pd on p.products_id = pd.products_id
JOIN products_to_categories p2c on p.products_id = p2c.products_id
WHERE
p.products_status = '1'
and pd.language_id = '1'
AND p2c.categories_id = '137' group by p.products_id ORDER BY CASE WHEN p.products_quantity > 0 THEN 1 WHEN p.products_quantity <= 1 THEN 0 END DESC ,IF(s.status, s.specials_new_products_price, p.products_price) ASC
ERROR: Disk full (/tmp/#sql_273_0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")