The car stalls out when stopping after running for long periods of time. on 2006 Mazda Tribute

car will restart but dies when it is put into gear. The car works fine when it is cold or only run for a short time.

Asked by for the 2006 Mazda Tribute