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

Signed-off-by: Jim Stichnoth <jstichnoth@mythtv.org>