fix gradebooks query
fix gradebooks query

test plan:
 * view grades as a student, specifying new
   submissions
 * it should work

Change-Id: I25ad52647099ec2591a6bc834b4b1178da53f474
Reviewed-on: https://gerrit.instructure.com/21747
Reviewed-by: Brian Palmer <3cb4e1df5ec4da2c7c4af7c52cec8cf340a55a10@instructure.com>
Product-Review: Bryan Madsen <0a3ba1af216659500dd8f41e29f3979f42452870@instructure.com>
QA-Review: Bryan Madsen <0a3ba1af216659500dd8f41e29f3979f42452870@instructure.com>
Tested-by: Jenkins <d95b56ce41a2e1ac4cecdd398defd7414407cc08@instructure.com>

sdeleon28/canvas-lms,shidao-fm/canvas-lms,grahamb/canvas-lms,Rvor/canvas-lms,shidao-fm/canvas-lms,djbender/canvas-lms,va7map/canvas-lms,ShreniiNepal/shrenii_lmp,fronteerio/canvas-lms,fronteerio/canvas-lms,arrivu/qibla-ecampus,arrivu/arrivu-lms,kyroskoh/canvas-lms,usmschuck/canvas,samuels410/greatlakes-lms,roxolan/canvas-lms,roxolan/canvas-lms,shidao-fm/canvas-lms,wimemx/Canvas,sdeleon28/canvas-lms,va7map/canvas-lms,usmschuck/canvas,Unow/canvas-lms,tgroshon/canvas-lms,greyhwndz/canvas-lms,jay3126/canvas-lms,arrivu/arrivu-lms,jay3126/canvas-lms,Rvor/canvas-lms,utkarshx/canvas-lms,efrj/canvas-lms,sfu/canvas-lms,samuels410/greatlakes-lms,kyroskoh/canvas-lms,venturehive/canvas-lms,utkarshx/canvas-lms,ShreniiNepal/shrenii_lmp,Jyaasa/canvas-lms,grahamb/canvas-lms,merichar/canvas-lms,greyhwndz/canvas-lms,sfu/canvas-lms,merichar/canvas-lms,Jyaasa/canvas-lms,arrivu/qibla-ecampus,sfu/canvas-lms,sfu/canvas-lms,SwinburneOnline/canvas-lms,kyroskoh/canvas-lms,venturehive/canvas-lms,samuels410/greatlakes-lms,landonwilkins/canvas-lms,wimemx/Canvas,samuels410/greatlakes-lms,wye0220/shindig-canvas,landonwilkins/canvas-lms,merichar/canvas-lms,HotChalk/canvas-lms,utkarshx/canvas-lms,SwinburneOnline/canvas-lms,arrivu/jigsaw-lms,redconfetti/canvas-lms,ShreniiNepal/shrenii_lmp,Rvor/canvas-lms,arrivu/hoodemo,grahamb/canvas-lms,sdeleon28/canvas-lms,va7map/canvas-lms,Jyaasa/canvas-lms,leftplusrightllc/canvas-lms,efrj/canvas-lms,wrdsb/canvas-lms,redconfetti/canvas-lms,wrdsb/canvas-lms,HotChalk/canvas-lms,djbender/canvas-lms,leftplusrightllc/canvas-lms,skmezanul/canvas-lms,tgroshon/canvas-lms,jay3126/canvas-lms,greyhwndz/canvas-lms,skmezanul/canvas-lms,venturehive/canvas-lms,skmezanul/canvas-lms,utkarshx/canvas-lms,redconfetti/canvas-lms,arrivu/jigsaw-lms,antoniuslin/canvas-lms,wimemx/Canvas,skmezanul/canvas-lms,arrivu/qibla-ecampus,venturehive/canvas-lms,tgroshon/canvas-lms,fronteerio/canvas-lms,SwinburneOnline/canvas-lms,antoniuslin/canvas-lms,SwinburneOnline/canvas-lms,loganrun/pincan,greyhwndz/canvas-lms,leftplusrightllc/canvas-lms,whalejasmine/canvas-lms,antoniuslin/canvas-lms,wye0220/shindig-canvas,djbender/canvas-lms,landonwilkins/canvas-lms,sfu/canvas-lms,juoni/canvas-lms,leftplusrightllc/canvas-lms,kyroskoh/canvas-lms,sdeleon28/canvas-lms,Rvor/canvas-lms,juoni/canvas-lms,shidao-fm/canvas-lms,Unow/canvas-lms,loganrun/pincan,HotChalk/canvas-lms,antoniuslin/canvas-lms,Unow/canvas-lms,whalejasmine/canvas-lms,loganrun/pincan,HotChalk/canvas-lms,grahamb/canvas-lms,tgroshon/canvas-lms,whalejasmine/canvas-lms,sfu/canvas-lms,landonwilkins/canvas-lms,arrivu/hoodemo,redconfetti/canvas-lms,va7map/canvas-lms,whalejasmine/canvas-lms,juoni/canvas-lms,Jyaasa/canvas-lms,roxolan/canvas-lms,arrivu/arrivu-lms,wrdsb/canvas-lms,efrj/canvas-lms,fronteerio/canvas-lms,roxolan/canvas-lms,wrdsb/canvas-lms,sfu/canvas-lms,jay3126/canvas-lms,djbender/canvas-lms,usmschuck/canvas,efrj/canvas-lms,usmschuck/canvas,ShreniiNepal/shrenii_lmp,grahamb/canvas-lms,arrivu/hoodemo,juoni/canvas-lms,arrivu/jigsaw-lms,wye0220/shindig-canvas