Ownership is what determines deductibility, not the loan. The loan could be in my name for all you care, you'd still get full deductibility on it.
If you want the benefits, then it (the property NOT the loan) has to be entirely in your name (or at least majority of it, say 90/10 or 80/20 or...