Corrects SQL IDs per https://github.com/betweenbrain/joomla-cms/commit/ccfcbcba8209d26fc6ffbffac7120c667defeac2#commitcomment-3924775. Muchos gracias Michael.