Out of resources when opening file '/var/tmp/#sql_593a_1.MAD' (Errcode: 24)