$query = "INSERT INTO tbl_event(mcode, packagetype) SELECT fcode, packagetype FROM tbl_family_accounts