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 ('16376','16387','16391','16403','16415','27809','16419','16420','34802','34803','26420','45047','45048','45049','26421','26422','34804','34805','34806','34807') ORDER BY pot.sort_order, _name_sort