Remove lines from a list that doesn't appear in another list

Without your definition, it’s hard to tell you what went wrong…

Have a look at this: Same problem, keeping lines which appear in both lists.