If you use whereRaw() (or whereRaw(DB:raw()) ), the principle doesn't work in field comparisons. Example: `...->whereRaw('tb1.field = tb2.field')` You will get an error related to **new_binds** variable.