toc_rows2 doesn't seem to exist, since you made it an OR in the SQL; guessing this is a remnant of a former strategy.