@McTag,
Quote:Do you know what the matter was?
Do you know what was the matter?
Why is the first wrong?
Quote:The first is not wrong.
I completely agree, McTag.
Quote:And disagreeing with MJ, they both mean the same to me.
Of course, they
could have different meanings depending on whether there was two different situations but, MJ's analysis is nonsense. [unless, of course, he has some other considerations in mind]
CONTEXT CONTEXT CONTEXT
Quote:The second sounds more idiomatic (although it is grammatically more awkward) because it more closely resembles the common usage "what's the matter?"
I disagree. The normal neutral situation for these "double question" forms is to only use one question form.
Do you know what the matter was?
That comes in the "Do you know" portion where we have 'do' signaling a question. Since we have the question marked with 'do', there's normally no need for subject verb inversion, "... was the matter", or for another auxiliary question marker [eg. did, do, have, etc.
?? Do you know where did he live? --> Do you know where he lived?
?? Do you understand what does 'preview' mean? --> Do you understand what 'preview' means?
?? Do you realize what has he done? --> Do you realize what he has done?
Having said that, there are times when speakers will use the second form with double question marking.
Do you know what was the matter?
In situations like this, there is often a pause, something like this.
Do you know, what was the matter?
I think it would be relatively rare to see this double question marker form in writing.