Your door lock mechanism is dying. Its a common fault in Mk5's. My passenger one went last year.
VW charge £340 to replace it at a dealer. You can get the part form eurocarparts for about £90 and an hour labour at an independent garage (£60-£80) to install. There are a few guides on here for taking the external door leaf off if you want to do it yourself.