These are the two crew lineups of the Star Trek Comic miniseries "The Worst of Both Worlds" In a Nutshell The Enterprise-D is pulled into an alternate reality in which the Borg invasion of 2366/2367 was successful and the Stardrive Section of the Enterprise-D is the only ship left remaining that is a threat to the Borg. The Picard portion of Locutus' mind briefly took control of his body and opened a rift to have another Enterprise from a reality where the invasion failed in the hopes that the other Enterprise could save the Fragmented Federation from the Borg collective.
Note that this comic was made before the TNG episode "Parallels", this comic was made in June of 1993 (Ironically the year and month I was born)
Top Row: Captain Jean-Luc Picard, Commander William T. Riker, Lt. Cmdr. Geordi LaForge, Lieutenant Worf, Dr. Beverly Crusher, Counselor Deanna Troi, Lt. Cmdr. Data.
Bottom Row: Captain William T. Riker, Commander Elizabeth Shelby, Lt. Cmdr. Geordi LaForge, Lieutenant Worf, CPO Miles O'Brien, Lt. Cmdr. Data, Ensign Wesley Crusher
Star Trek and all related elements (c) Gene Roddenberry, Paramount Pictures and CBS Studios
Micro credit goes to