you need to do it in the philippines phillip with in that remaining 27days so that you don't pay again the visa and yeah thats better to get married in th PI i dont think its will affect in your application next time, just need to be careful to fill in the application if have a sort of question regarding to your previous visa application.