SELECT ev.id, ev.s_id, ev.u_id, ev.i_id, ev.date, ev.title, ev.description, ev.text, ev.link, ev.image, ev.rating, dt.id_d, dt.EventStart, dt.EventEnd, ev.place, ev.city, ev.public, ev.keywords, ev.source, ev.hash FROM events as ev LEFT JOIN event_date as dt ON (ev.id = dt.eventid ) WHERE dt.eventstart >= "2017-09-13 01:37:12" AND dt.eventend <= "2017-09-13 01:37:12" GROUP BY dt.eventid, DATE_FORMAT(dt.eventstart, "%Y-%m-%d") ORDER BY rating DESC, dt.eventstart ASC LIMIT 10
Error in FILE: /var/www/html/afisha.uaportal.com/classes/EventList.class.php, LINE: 259
Can't conect to DB!