Fix for #2247 | Use correct column when calculating next sequence value
Fix for #2247 | Use correct column when calculating next sequence value

See #2247 for more details.
CVO-Technologies/cakephp,tenkoma/cakephp,adopico/cakephp,gmponos/cakephp,jjj117/cakephp,jjj117/cakephp,web-player/cakephp,thinkingmedia/cakephp,davidyell/cakephp,berrygoudswaard/cakephp,burriko/cakephp,erikfig/cakephp,jerems02/cakephp,garethellis36/cakephp,burriko/cakephp,dakota/cakephp,pbaire/cakephp,tisu2tisu/cakephp,dkarvounaris/cakephp,timhoeppner/cakephp,dakota/cakephp,bravo-kernel/cakephp,erikfig/cakephp,yinhe007/cakephp,nrother/cakephp,cakephp-fr/cakephp,petteyg/cakephp,nrother/cakephp,berrygoudswaard/cakephp,Phillaf/cakephp,CakeDC/cakephp,michaelze/cakephp,petteyg/cakephp,berrygoudswaard/cakephp,tgr0ss/cakephp,Phillaf/cakephp,gmponos/cakephp,timhoeppner/cakephp,adopico/cakephp,timhoeppner/cakephp,justinyost/cakephp,ndm2/cakephp,erikfig/cakephp,eryw/cakephp,CakeDC/cakephp,eboominathan/cakephp,bravo-kernel/cakephp,dakota/cakephp,HavokInspiration/cakephp,justinyost/cakephp,khoimt/cakephp-study,elboletaire/cakephp,et304383/passbolt_api,cakephp/cakephp,tisu2tisu/cakephp,ionas/cakephp,ndm2/cakephp,garethellis36/cakephp,web-player/cakephp,jeffblack360/cakephp,tenkoma/cakephp,justinyost/cakephp,tgr0ss/cakephp,web-player/cakephp,ionas/cakephp,tgr0ss/cakephp,cakephp-fr/cakephp,jerems02/cakephp,dkarvounaris/cakephp,cakephp/cakephp,michaelze/cakephp,Phillaf/cakephp,khoimt/cakephp-study,jjj117/cakephp,CVO-Technologies/cakephp,Balachan27/cakephp,tisu2tisu/cakephp,CakeDC/cakephp,tenkoma/cakephp,Balachan27/cakephp,mvdriel/cakephp,CakeDC/cakephp,eboominathan/cakephp,jerems02/cakephp,ADmad/cakephp,khoimt/cakephp-study,ADmad/cakephp,tenkoma/cakephp,CVO-Technologies/cakephp,mvdriel/cakephp,petteyg/cakephp,akintoey/cakephp,HavokInspiration/cakephp,elboletaire/cakephp,ndm2/cakephp,thinkingmedia/cakephp,petteyg/cakephp,akintoey/cakephp,adopico/cakephp,jeffblack360/cakephp,eryw/cakephp,ionas/cakephp,thinkingmedia/cakephp,ADmad/cakephp,cakephp/cakephp,dkarvounaris/cakephp,cakephp/cakephp,et304383/passbolt_api,jeffblack360/cakephp,yinhe007/cakephp,michaelze/cakephp,mvdriel/cakephp,garethellis36/cakephp,eryw/cakephp,dakota/cakephp,akintoey/cakephp,ADmad/cakephp,davidyell/cakephp,HavokInspiration/cakephp,Balachan27/cakephp,kumamidori/cakephp,et304383/passbolt_api,gmponos/cakephp,cakephp-fr/cakephp,eboominathan/cakephp,et304383/passbolt_api,kumamidori/cakephp,ndm2/cakephp,pbaire/cakephp,mvdriel/cakephp,garethellis36/cakephp,burriko/cakephp,bravo-kernel/cakephp,et304383/passbolt_api,nrother/cakephp,kumamidori/cakephp,davidyell/cakephp,yinhe007/cakephp,elboletaire/cakephp,pbaire/cakephp