Narrative:

My student and I were doing takeoffs and landings at fxe. We were on the first quarter of the right downwind. My student and I noticed a plane about 50 feet above us from the right window and we promptly put the nose down. Right before this happened; tower was trying to figure out if the plane that almost hit us had traffic in sight and both tower and the traffic seemed very confused. After we avoided the traffic I told tower that the traffic flew about 50 ft above us. The plane that flew above us explained that they were following the wrong traffic (the traffic that was in front of us). I tried to call tower to inquire about this event and what we can all do differently to avoid it next time but they did not answer.

Google
 

Original NASA ASRS Text

Title: Instructor pilot reported an NMAC with another aircraft that was supposed to follow them but was following traffic ahead.

Narrative: My student and I were doing takeoffs and landings at FXE. We were on the first quarter of the right downwind. My student and I noticed a plane about 50 feet above us from the right window and we promptly put the nose down. Right before this happened; Tower was trying to figure out if the plane that almost hit us had traffic in sight and both Tower and the traffic seemed very confused. After we avoided the traffic I told Tower that the traffic flew about 50 ft above us. The plane that flew above us explained that they were following the wrong traffic (the traffic that was in front of us). I tried to call Tower to inquire about this event and what we can all do differently to avoid it next time but they did not answer.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.