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