$db->query ("SELECT UNIX_TIMESTAMP() AS dateline, dateline_from, eventid, title FROM event WHERE calendarid = 3 AND dateline_from >= UNIX_TIMESTAMP() ORDER BY dateline_from LIMIT 250");