Welcome to HCM.
could be from a number of causes from ureteric stones to tight under wear. Since you are having this pain for more than a year, the most likely cause could be varicocele
. You need to consult an Urologist
, who will have to examine you, do the necessary tests including Colour Doppler Study to ascertain the cause and treat you accordingly.
Wish you all the Best.