Fix small reference bug 

This fixes the "Call to undefined method Illuminate\Database\Query\Builder::getQuery()" bug.