Adult lilac borers (shown) and banded ash clearwing borers are sometimes mistaken for wasps.
A wasp-mimicking moth with yellow striped legs and clear wings.

James Solomon, USDA Forest Service, Bugwood.org