def METHOD_NAME(event_id):
    """Search attendees by name or email."""
    query = TicketHolder.query.filter(TicketHolder.event_id == event_id)
    args = request.args
    if args.get('name'):
        query = query.filter(
            (TicketHolder.firstname.ilike('%' + args.get('name') + '%'))
            | (TicketHolder.lastname.ilike('%' + args.get('name') + '%'))
        )
    if args.get('email'):
        query = query.filter(TicketHolder.email.ilike('%' + args.get('email') + '%'))
    attendees = query.order_by(TicketHolder.id.desc()).all()
    return jsonify({'attendees': attendees})