Disk full (/var/tmp/#sql_1c58_0); waiting for someone to free some space...SELECT t.* FROM SC_product_options_templates_categoryes c LEFT JOIN SC_product_options_templates t on c.templateID = t.templateID where c.categoryID = 561 AND t.templateEnable = 1 order by templatePriority ASC limit 0,1