Use the correct index for program.previouslyshown in the query result.

Signed-off-by: Jim Stichnoth <jstichnoth@mythtv.org>
(cherry picked from commit 25aa598fda8fce1d1ed36c68b9da75ebfd1c7476)