Try: db(db.table1.id.belongs([1,2,3])).select() You can always print the SQL to your console so you can check it is what you expect... db(db.table1.id.belongs([1,2,3]))._select()
(Note the underline: _select) On Tuesday, January 8, 2013 11:44:28 AM UTC, Ramos wrote: > > Can i do this select db(db.table1.id in [1,2,3]).select() ? > > thank you > António > --