Remove unused variable $tagquery