Modified column name total to total_population and accordingly changed all the instances of total in the code.
total
total_population
Also, updated P.[total] to P.[total_population] AS to_update_population in the calculate_building_numbers_district_no_info function.
P.[total]
P.[total_population] AS to_update_population
calculate_building_numbers_district_no_info
\approve @ds @tara