Script Execution Error

The MySQLi extension encountered a problem submitting an SQL statement. MySQLi reported the error as: Can't create/write to file '/tmp/#sql_3ae6_0.MYI' (Errcode: 2)

File: /private/core/CORE/CORE.php Line: 470 Error Number: 256