linda in the year you are looking i.e. his birth llanhamlach was in brecknock/powys over the years it was changed to breconshire
Date of Registration: Jan-Feb-Mar 1846
Registration district: Brecknock
Inferred County: Breconshire, Powys
this explains it
Llanhamlach is a village in rural Powys, Wales about 4 miles east of Brecon.
Previously part of Brecknock Rural District, Llanhamlach was in the county of Brecknockshire before becoming part of Powys.