There are many grammar concepts in Spanish that can get confusing. Using direct and indirect objects in the same sentence is one of these.
Direct objects talk about a specific noun, while indirect objects refer to a person who is affected by the action we are talking about. So if I say ‘I give the book to her‘ I could rewrite this sentence as ‘I give it to her‘, assuming you know what ‘it‘ and ‘her‘ are. In this case, ‘it‘ is the direct object and ‘her‘ is the indirect object. Watch the video to learn more about this specific situation in Spanish.
Also see our post on word order rules to help remind you what order we put direct and indirect objects as well as other parts of the sentence.