Disk full (/var/tmp/#sql_7cd_0); waiting for someone to free some space...
SELECT pot.*, 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 ('1165','1169','1164','1167','1048','1047','1156','1170','1168','1178','1049','1173','1050','1176','1177','1175','1171') ORDER BY pot.sort_order, _name_sort