Fix aaid for new req SQL