I assume it´s possible to rewrite this one, but I assume most people are not very good in reading SQL from others.
Can you describe how your s_Document and s_TDP_Document ItemTypes are linked together?
Are both of them independent ItemTypes or is a s_TDP_Document a relationship of your s_Document?
Are additional ItemTypes involved?
Which one of the two document itemTypes is linked to your "this.getID()"?
Maybe you can provide a simple structure like
Part <--- I want to get this one
--> Part AML
-----> Manufacturer Part <--- I start from here. this.getID() contains the id of this Item