Riker contracts a virus that feeds off of endorphines. To treat him, the Enterprise must stimulate his neurons to relive bad memories. Crappy montage follows.
If you haven't watched this episode yet, don't bother. It's nothing more than a collection of clips from previous shows, and Troi complaining about Riker being in danger.