Fix failing test on Oracle. Having a duplicated column specified in a select with order on the same column makes Oracle complain about "column ambiguously defined" when an order is defined on such column (introduced by default order on `first`) (fixes #6147).
Fix failing test on Oracle. Having a duplicated column specified in a
select with order on the same column makes Oracle complain about "column
ambiguously defined" when an order is defined on such column (introduced
by default order on `first`) (fixes #6147).

jeremy/rails,kddeisz/rails,yawboakye/rails,printercu/rails,kmayer/rails,repinel/rails,alecspopa/rails,rafaelfranca/omg-rails,travisofthenorth/rails,Envek/rails,amoody2108/TechForJustice,ttanimichi/rails,bradleypriest/rails,brchristian/rails,esparta/rails,aditya-kapoor/rails,sealocal/rails,kamipo/rails,eileencodes/rails,ttanimichi/rails,mijoharas/rails,gavingmiller/rails,baerjam/rails,yahonda/rails,maicher/rails,illacceptanything/illacceptanything,rails/rails,kenta-s/rails,mechanicles/rails,ledestin/rails,alecspopa/rails,gcourtemanche/rails,BlakeWilliams/rails,lucasmazza/rails,gfvcastro/rails,travisofthenorth/rails,Erol/rails,lcreid/rails,rossta/rails,rails/rails,marklocklear/rails,marklocklear/rails,Erol/rails,lcreid/rails,shioyama/rails,joonyou/rails,gauravtiwari/rails,prathamesh-sonpatki/rails,prathamesh-sonpatki/rails,MSP-Greg/rails,Envek/rails,illacceptanything/illacceptanything,MichaelSp/rails,bolek/rails,mtsmfm/rails,kmcphillips/rails,iainbeeston/rails,kmcphillips/rails,MichaelSp/rails,flanger001/rails,kddeisz/rails,repinel/rails,fabianoleittes/rails,mijoharas/rails,matrinox/rails,mohitnatoo/rails,assain/rails,notapatch/rails,yasslab/railsguides.jp,illacceptanything/illacceptanything,kaspth/rails,flanger001/rails,esparta/rails,riseshia/railsguides.kr,koic/rails,ledestin/rails,arunagw/rails,riseshia/railsguides.kr,flanger001/rails,yhirano55/rails,illacceptanything/illacceptanything,jeremy/rails,pschambacher/rails,vassilevsky/rails,georgeclaghorn/rails,pvalena/rails,vassilevsky/rails,odedniv/rails,deraru/rails,baerjam/rails,gauravtiwari/rails,gavingmiller/rails,bogdanvlviv/rails,yalab/rails,Erol/rails,richseviora/rails,lcreid/rails,stefanmb/rails,printercu/rails,eileencodes/rails,rails/rails,maicher/rails,arjes/rails,mechanicles/rails,untidy-hair/rails,odedniv/rails,yasslab/railsguides.jp,aditya-kapoor/rails,ngpestelos/rails,samphilipd/rails,EmmaB/rails-1,kirs/rails-1,arjes/rails,rbhitchcock/rails,lcreid/rails,richseviora/rails,felipecvo/rails,maicher/rails,amoody2108/TechForJustice,marklocklear/rails,gfvcastro/rails,MSP-Greg/rails,bogdanvlviv/rails,odedniv/rails,arjes/rails,yahonda/rails,joonyou/rails,kenta-s/rails,elfassy/rails,mechanicles/rails,kachick/rails,yawboakye/rails,gauravtiwari/rails,BlakeWilliams/rails,matrinox/rails,amoody2108/TechForJustice,notapatch/rails,hanystudy/rails,starknx/rails,sealocal/rails,yawboakye/rails,kenta-s/rails,gfvcastro/rails,Vasfed/rails,Envek/rails,sergey-alekseev/rails,kmayer/rails,mohitnatoo/rails,mtsmfm/railstest,Vasfed/rails,Envek/rails,kaspth/rails,vassilevsky/rails,mtsmfm/railstest,rbhitchcock/rails,schuetzm/rails,untidy-hair/rails,tjschuck/rails,ngpestelos/rails,samphilipd/rails,pvalena/rails,illacceptanything/illacceptanything,hanystudy/rails,88rabbit/newRails,yahonda/rails,pvalena/rails,brchristian/rails,tgxworld/rails,felipecvo/rails,ledestin/rails,mtsmfm/railstest,georgeclaghorn/rails,prathamesh-sonpatki/rails,joonyou/rails,BlakeWilliams/rails,pvalena/rails,tgxworld/rails,bolek/rails,tijwelch/rails,mohitnatoo/rails,starknx/rails,stefanmb/rails,deraru/rails,kachick/rails,georgeclaghorn/rails,rossta/rails,coreyward/rails,kaspth/rails,vipulnsward/rails,yawboakye/rails,vipulnsward/rails,koic/rails,Stellenticket/rails,EmmaB/rails-1,yhirano55/rails,yhirano55/rails,repinel/rails,palkan/rails,tjschuck/rails,fabianoleittes/rails,88rabbit/newRails,Sen-Zhang/rails,MSP-Greg/rails,aditya-kapoor/rails,kirs/rails-1,pschambacher/rails,kamipo/rails,kamipo/rails,yasslab/railsguides.jp,rafaelfranca/omg-rails,eileencodes/rails,Edouard-chin/rails,assain/rails,yhirano55/rails,tijwelch/rails,iainbeeston/rails,starknx/rails,deraru/rails,Edouard-chin/rails,kddeisz/rails,EmmaB/rails-1,untidy-hair/rails,kirs/rails-1,Spin42/rails,Stellenticket/rails,gavingmiller/rails,kachick/rails,Sen-Zhang/rails,voray/rails,travisofthenorth/rails,illacceptanything/illacceptanything,arunagw/rails,palkan/rails,bolek/rails,illacceptanything/illacceptanything,utilum/rails,mtsmfm/rails,prathamesh-sonpatki/rails,Sen-Zhang/rails,tjschuck/rails,rossta/rails,mijoharas/rails,bradleypriest/rails,schuetzm/rails,palkan/rails,tjschuck/rails,gcourtemanche/rails,arunagw/rails,yasslab/railsguides.jp,illacceptanything/illacceptanything,mathieujobin/reduced-rails-for-travis,tgxworld/rails,esparta/rails,arunagw/rails,mechanicles/rails,travisofthenorth/rails,ngpestelos/rails,rbhitchcock/rails,betesh/rails,notapatch/rails,palkan/rails,deraru/rails,gfvcastro/rails,illacceptanything/illacceptanything,aditya-kapoor/rails,printercu/rails,esparta/rails,baerjam/rails,gcourtemanche/rails,rails/rails,rafaelfranca/omg-rails,kmcphillips/rails,betesh/rails,Stellenticket/rails,vipulnsward/rails,mohitnatoo/rails,assain/rails,MichaelSp/rails,illacceptanything/illacceptanything,jeremy/rails,Stellenticket/rails,riseshia/railsguides.kr,kmcphillips/rails,utilum/rails,bogdanvlviv/rails,matrinox/rails,ttanimichi/rails,tgxworld/rails,jeremy/rails,betesh/rails,Erol/rails,printercu/rails,richseviora/rails,eileencodes/rails,Edouard-chin/rails,fabianoleittes/rails,Spin42/rails,88rabbit/newRails,utilum/rails,hanystudy/rails,lucasmazza/rails,illacceptanything/illacceptanything,notapatch/rails,georgeclaghorn/rails,shioyama/rails,mathieujobin/reduced-rails-for-travis,kddeisz/rails,bogdanvlviv/rails,untidy-hair/rails,schuetzm/rails,voray/rails,pschambacher/rails,coreyward/rails,felipecvo/rails,iainbeeston/rails,joonyou/rails,assain/rails,mathieujobin/reduced-rails-for-travis,fabianoleittes/rails,shioyama/rails,xlymian/rails,illacceptanything/illacceptanything,xlymian/rails,flanger001/rails,tijwelch/rails,voray/rails,sealocal/rails,samphilipd/rails,schuetzm/rails,illacceptanything/illacceptanything,elfassy/rails,MSP-Greg/rails,BlakeWilliams/rails,kmayer/rails,iainbeeston/rails,coreyward/rails,lucasmazza/rails,sergey-alekseev/rails,riseshia/railsguides.kr,repinel/rails,elfassy/rails,sergey-alekseev/rails,brchristian/rails,Spin42/rails,vipulnsward/rails,utilum/rails,xlymian/rails,betesh/rails,shioyama/rails,Vasfed/rails,alecspopa/rails,mtsmfm/rails,bradleypriest/rails,yalab/rails,stefanmb/rails,Vasfed/rails,baerjam/rails,koic/rails,yalab/rails,illacceptanything/illacceptanything,Edouard-chin/rails,yalab/rails,yahonda/rails,illacceptanything/illacceptanything