Idiom: Put your foot in your mouth

See also: