SELECT * FROM `tbl_apply` left join `tbl_activitie` on `tbl_apply`.`activitie_id` = `tbl_activitie`.`id` where `mid` = '80' AND `tbl_apply`.`id` = ''