Update base.php

Set default query parameter.
Sometimes this function is called without it