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\tpictures1.id as picid,pictures1.safename as picsafename,pictures1.extension,\n\t\t\t\t\t\tif(pictures1.id is null,substring_index(group_concat(pictures2.id,'|',pictures2.safename,'|',pictures2.extension order by pictures2.pictureorder separator '@' ), '@', 1),'') as pic2,\n\t\t\t\t\t\tif(events.date_start>now(),2,if(events.date_end0\n\t\t\t\tand\n\t\t\t\t(\n\t\t\t\t\t\n\t\t\t\tevents.date_end<='2020-05-28 07:27' \n\t\t\t\t)\n\t\t\t\t\n\t\t\tgroup by events.id\n\t\t\torder by if(events.date_end