If the name on your ticket and passport don't match, you need to get the ticket changed. Many airlines will change a small mistake for free, while other will charge a fee that depends on the size of the error. See out list of top airlines lower down this page for costs.