$list=DB::SELECT("SELECT a.*,b.time FROM event_participant a,event_attendance b WHERE b.`fk_event_participant` = a.`id` and a.fk_master_event = $eventid");
$list=DB::SELECT("SELECT a.*,b.time,(select name from users where id = $uid) as 'by' FROM event_participant a,event_attendance b WHERE b.`fk_event_participant` = a.`id` and a.fk_master_event = $eventid");