Fix strange redirect

Using the built-in 'p' query variable would redirect to an actual post if it was set to a real post's ID.  This was not intentional.  Switching instead to 'pid' to prevent redirects.