With just over a week left before election day, the Long Beach city clerk has discovered ballot irregularities that could affect more than half of the city’s voting precincts in one of the most closely watched local elections in years. Ballot tabulators failed to count votes marked on the second page of some ballots, said City Clerk Larry Herrera. The mistake affects precincts that have two-page ballots — about 169 of the city’s 295 polling places. Herrera said his office discovered the problem Friday afternoon while running a routine “logic and accuracy” test on the ballots ahead of next Tuesday’s election. The city has not printed two-page ballots since 2007, according to Herrera, and since then some of the tabulation processes have changed but were not readjusted for the two-page ballots. The primary election, scheduled for April 8, is expected to narrow large fields of candidates vying for wide-open races for mayor and five of the nine City Council seats.