ClanCats/Hydrahon

select comparing fields from the same table

joaosn opened this issue · 0 comments

hi,
I tried something like this
SELECT * FROM produtos WHERE qt < minqt AND id_user = 2

$Produto->select()
->where('id_user',$id_user)
->where('qt','<','minqt')
->get();

Wouldn't that be right?