Failing a high school class taken in middle school

Hello,

In middle school, I took a Spanish class that counted toward my HS GPA. Due to unfair circumstances, I received a 59 on my transcript. But in high school I received all As. My question is: will this affect my chances of getting into selective colleges?