Patch for integer overflow when auto-casting in a PDO query.
Merge branch 'bugfix/int-overflow' into develop