Update avatarquery.php

forgot to remove some old, not used code