fix compile select when columns is null

When using Eloquent model, the select statement generated is invalid.

```php
$query = new Demo;
$query->select('*');
echo $query->toSql();
```

Expected SQL:
```select * from demos```

Actual SQL:
```from demos where```