Without know the specifics, it is impossible to give you an absolute answer. Since you have tagged this question as dual-nationality, this answer assumes that you have one passport for each nationality and they should be both valid (an invalid passport is a different issue).
First of all, middle and second names are usually not a problem. Sometimes they get abbreviated or omitted even. Your first name matches in both cases and so does your second last name, so it would be fair to say that there would be little doubt these are not for the same person, particularly since your date-of-birth and place-of-birth (if specified) also match.
Most importantly, immigration rarely asks to see more than one passport at a given point. You may be even able to travel with just one but if both are in fact needed for a particular trip, then you show one to immigration at your home country (when exiting on your way out and entering on your way back) and the other at your destination country (on your way and out). You also show the passport for your home country at check-in but that is to validate that you can be let in at the destination. A few countries have no exit immigration step, so nothing to show there.