What could cause and engine to have a knocking tapping sound and lose power on 2000 Ford Escort

This occurs when the vehicle is warm and in gear. It does not do it in neutral or when I let off the gas while in gear.

Asked by for the 2000 Ford Escort
sounds almost like sticky valves either additive or a cup of atf in the oil