Continuity mistake: Near the end, when Pulaski finally stops the infection in Riker and is just about to contact Picard with her success, look at Riker lying on the table. His eyes are open, then he closes them slowly. The next scene has Riker opening his eyes for the first time after recovering from the procedure.
Other mistake: In this episode, in Riker's memory, the encounter between him and Quinn is re-lived. As Quinn starts to attack Riker, you can see Riker's stunt double's face, and tell that it's Quinn's stunt double, as the hair is smooth, not styled. Also, Riker is a few inches taller than Quinn, but in the onset of the attack, they're equal heights.
Continuity mistake: After Pulaski examines Riker's leg, and readies to beam up, he leans to the right to get up. In the wide shot, he does it again.
Answer: He brought the Borg to the Alpha Quadrant and showed them that it was full of worlds waiting to be assimilated. Guinan's homeworld was their first stop, and they assimilated everyone and took over the planet, leaving The Survivors of her race without a home. Q is ultimately responsible for that.
Captain Defenestrator
By the time Q takes the Enterprise to meet the Borg, Guinan already knew who they were and they had already destroyed her world. Therefore the above answer can not be right. I believe Guinan is much more than she appears, and her people have had encounters with the Q in the past. It is these interactions, that obviously were not pleasant, that fuels her distrust.
oldbaldyone
That's what the above answer is saying. Q brought the Borg to the Alpha Quadrant (not Earth) and the Borg destroyed Guinan's home world in the late 2200's, which is why she hates Q. Although she met Q in 2160 and they both saw each other as enemies right away.
Bishop73