Update baseQuery.php

Removed unused variables