Out of resources when opening file '/var/tmp_mysql/#sql_27faa9_0.MAI' (Errcode: 24 "Too many open files")
SELECT pot.*, IF(LENGTH(pot.name_ru), pot.name_ru, pot.name_ru) AS _name_sort, povt.* FROM SC_product_options_values as povt LEFT JOIN SC_product_options as pot ON pot.optionID=povt.optionID WHERE povt.productID IN ('13041','13037','13049','13443','13444','13442','13441','13021','13020','13445','13446','13447','13026','13025','13023','13448','13449','13024','13027','13028') ORDER BY pot.sort_order, _name_sort