Cast $nrows and $offset to to prevent SQL injection
Cast $nrows and $offset to to prevent SQL injection

Cherry-pick + squash of commits
- 5c5ee9e953dd0caf978630b1c3147447d6cb58a7
- c8524bb3fcd291fe6233643fb43e9ceeb8aef925

ipso/ADOdb,ipso/ADOdb