I did exactly the same, turned down an offer after initially accepting it. then realised I had made a terrible mistake after a couple of months and got back to them. In the end they offered me the job again. I think as long as you were civil and gave them good reasons for turning down the job then it shouldn't be a problem. I also think given the period of time that has passed since you turned down the job its probably of no consequence any more. Hope, this helps and good luck