def METHOD_NAME(cls, document_name, project_guid=None):
    """
    Find Mine Documents by the document_name and the project_guid.
    """
    qy = db.session.query(MineDocument).filter_by(document_name=document_name, deleted_ind=False)
    if project_guid is not None:
        qy = qy\
            .join(ProjectSummaryDocumentXref)\
            .join(ProjectSummary)\
            .join(Project)\
            .filter(Project.project_guid == project_guid)\
            .order_by(desc(MineDocument.update_timestamp))
        return qy.first()
    raise ValueError("Missing 'project_guid', This is required to continue the file upload process."