Invalid query:
select cb.banner, cjs.islinkonly, ev.permalink, ev.typemodule, ev.filtertab, UNIX_TIMESTAMP(evd.startdate) AS releasedate_unix, ev.idevent, ev.courselink, lev.title, lev.name_wd, CASE WHEN UNIX_TIMESTAMP(evd.startdate)>=(UNIX_TIMESTAMP('2017-07-23 14:45:07')-(((evd.durationhours*60)+if(evd.durationminutes=1,0,if(evd.durationminutes=2,15,if(evd.durationminutes=3,30,if(evd.durationminutes=4,45,0)))))*60)) THEN 0 ELSE 1 END AS futureorpast from coursebanner cb inner join event ev on (cb.idevent=ev.idevent) inner join eventjoindate evd on (ev.idevent=evd.idevent) inner join coursejoinsite cjs on (ev.idevent=cjs.idevent and cb.idsite=cjs.idsite) inner join localizeevent lev on (ev.idevent=lev.idevent and cjs.idlanguage=lev.idlanguage) where ((ev.banstartfrom<='2017-07-23 14:45:07' and ev.banendon>='2017-07-23 14:45:07') or (ev.banstartfrom is null and ev.banendon is null)) and lev.published=1 and cb.idsite=108 and cjs.idlanguage=2 and cb.zoneid=1 group by ev.idevent order by futureorpast ASC, CASE WHEN releasedate_unix >= (UNIX_TIMESTAMP('2017-07-23 14:45:07')-(((evd.durationhours*60)+if(evd.durationminutes=1,0,if(evd.durationminutes=2,15,if(evd.durationminutes=3,30,if(evd.durationminutes=4,45,0)))))*60)) THEN releasedate_unix ELSE rand() END
Error: Got error 28 from storage engine

Warning: Unknown: write failed: No space left on device (28) in Unknown on line 0

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/atsccom/public_html/_Sessions) in Unknown on line 0