I've been puzzling over this for quite some time now, namely the fact that Greater Planar Ally allows for up to 18HD of creatures, and yet if you visit the d20pfsrd page, the table goes up to 22HD.
The only thing I've managed to find is a 3rd part feat, Planar Caller, that lets you add +1HD to...