Brought forward balances include previous years balances

Hi, 

I have run the year end for 2023, but the balance sheet for January is pulling through transactions from as far back as 2017, so the year to date figures are incorrect. Have I done something wrong when running the year end or have previous year ends not been run (I am new to the company) and how do I correct this? Thanks