It works when I try it.
The only thing is, the Prev 1 2 3 4 next are being displayed on the same line as $location.
Put a <p> after that line and you will see the page navigation.
Also you have your ORDER BY clause in the wrong query.
Remove it from the first query and put it in the second query.
I am sure you can do this with only one query if you think it through.