Rewrite homepage query

Stops it interfering with the admin view