Error in SQL::query
Can't create/write to file '/tmp/#sql_3ca_0.MAI' (Errcode: 122)
SELECT a.*, b.name AS city FROM `users` AS a LEFT JOIN `cities` AS b ON b.id = a.city WHERE `active` AND `expires` > NOW() ORDER BY RAND() DESC LIMIT 10