Warning: file_put_contents(): Only 0 of 145 bytes written, possibly out of free disk space in /var/www/autostat/data/www/autostat.ru/core/models/db.php on line 95 Warning: file_put_contents(): Only 0 of 2091 bytes written, possibly out of free disk space in /var/www/autostat/data/www/autostat.ru/core/models/db.php on line 190 Warning: file_put_contents(): Only 0 of 481 bytes written, possibly out of free disk space in /var/www/autostat/data/www/autostat.ru/core/models/db.php on line 127 Warning: file_put_contents(): Only 0 of 66 bytes written, possibly out of free disk space in /var/www/autostat/data/www/autostat.ru/core/models/db.php on line 127 Warning: file_put_contents(): Only 0 of 106 bytes written, possibly out of free disk space in /var/www/autostat/data/www/autostat.ru/core/models/db.php on line 190 Warning: file_put_contents(): Only 0 of 593 bytes written, possibly out of free disk space in /var/www/autostat/data/www/autostat.ru/core/models/db.php on line 127

Ошибка в SQL:

SELECT DISTINCT bbsc.banner_id, bb.* FROM brandbook_banners_show_categories bbsc INNER JOIN brandbook_banners bb ON bb.id = bbsc.banner_id WHERE bbsc.category_id = 25 AND bb.active != 0 AND (bb.date_begin <= "2017-07-23 01:54:29" OR bb.date_begin = "0000-00-00 00:00:00") AND (bb.date_end >= "2017-07-23 01:54:29" OR bb.date_end = "0000-00-00 00:00:00") AND (bb.show_limit = 0 OR bb.view_random < bb.show_limit) ORDER BY RAND()

Disk full (/var/lib/tmp_mysql/#sql_66f_0); waiting for someone to free some space...