Update class.query.php

reduction of the class