Update laravel/database/query.php

If the count is 0, It's not necessary to obtain data.