Fix FinderMethods#last unscoped primary key

Fixes table.joins(:relation).last(N) breaking on sqlite