 SPOILER: The scene where we see some interior of the Enterprise D is  taken from _"Star Trek: The Next Generation" (1987)_ (qv) episode  #3.24 "Menage a Troi". Lwaxana Troi is substituted by William T.  Riker in this scene, which is why he can be seen twice.