The sentence should read: "You knew were in trouble."
Here's why:
* Subject-verb agreement means the verb must agree in number (singular or plural) with its subject.
* The subject of the sentence is "you," which is plural.
* The past tense of the verb "to be" for plural subjects is "were."