DB Error: Out of resources when opening file '/tmp/#sql_6c7_28.MAD' (Errcode: 24 "Too many open files")