select * from db.tbl where id=? or foo=?