Warning: mysqli::query(): (HY000/23): Out of resources when opening file '/tmpsql/#sql_bc2_0.MAI' (Errcode: 24 "Too many open files") in /home/dithepi/public_html/db.php on line 192
{"status":"error","error":"query_failed","query":"SELECT SQL_CALC_FOUND_ROWS events.id,eventtypeid,api_eventid,\n\t\t\t\t\t\tevents.teamid,\n\t\t\t\t\t\tevents.title_el as title,\n\t\t\t\t\t\tevents.writer_of_el as writerof,\n\t\t\t\t\t\tevents.subtitle_el as subtitle,\n\t\t\t\t\t\tevents.shorttext_el as shorttext,\n\t\t\t\t\t\tevents.hallid,events.sceneid,\n\t\t\t\t\t\tif(events.safename is not null,events.safename,events.id) as safename,\n\t\t\t\t\t\tdate_start,date_end,\n\t\t\t\t\t\tpictures.id as picid,pictures.safename as picsafename,pictures.extension,\n\t\t\t\t\t\tif(events.date_start>now(),2,if(events.date_end0\n\t\t\tand events.active_el>0\n\t\t\t\tand events.date_start>='2018-01-01 00:00'\n\t\t\t\t and events.teamid in (2) and events.date_end<='2018-12-01 00:00'\n\t\t\tgroup by events.id\n\t\t\torder by if(events.date_end