It is preferable to take material from the original source, but sometimes you must take information from an indirect source. An indirect source is essentially a quotation within a quotation. You consult a source and find that the author has quoted someone else. That someone else is an indirect source.
On the Works Cited page, you include a complete citation for the direct source. This will not mention the indirect source.
However, within the text of your paper you must indicate that your quotation or paraphrase comes from an indirect source, using qtd. in.
For example, "'The panther is being squeezed,' says NWF Senior Counsel John Kostyack" (qtd in Dupree).
Dupree, Joe. “Cat on a Collision Course.” National Wildlife, vol. 45, no. 3, Apr. 2007, pp. 22–30. EBSCOhost, search.ebscohost.com/login.aspx?direct=true&AuthType=shib&db=pwh&AN=24535086&site=ehost-live.