FAR 61.23cii -- "Have been found eligible for the issuance of at least a third-class airman medical certificate at the time of his or her most recent application (if the person has applied for a medical certificate);"
You say your most recent medical certificate was denied; i.e., you were not...