The verb wonder takes an embedded indirect question. The direct question is: Who was that remark aimed at? Therefore, you need to place the indirect question after wonder thus: Everyone was wondering who that remark was aimed at. __ Very formally, the direct question is: At whom was that...