fix sql request to get only valid authorizations.
fix sql request to get only valid authorizations.

lmcro/boulder,mozmark/boulder,josephyzhou/boulder,letsencrypt/boulder,julienschmidt/boulder,julienschmidt/boulder,sophie-h/boulder,lmcro/boulder,josephyzhou/boulder,josephyzhou/boulder,hlandauf/boulder,deserted/boulder,mozmark/boulder,patf/boulder,deserted/boulder,lucasallan/boulder,ibukanov/boulder,mommel/boulder,jsha/boulder,bmw/boulder,ibukanov/boulder,deserted/boulder,jcjones/boulder,mommel/boulder,mehmooda/boulder,benileo/boulder,mehmooda/boulder,patf/boulder,mommel/boulder,hlandauf/boulder,ibukanov/boulder,lucasallan/boulder,modulexcite/boulder,jsha/boulder,lucasallan/boulder,lmcro/boulder,mozmark/boulder,hlandauf/boulder,benileo/boulder,patf/boulder,r0ro/boulder,jmhodges/boulder,letsencrypt/boulder,jsha/boulder,postfix/boulder,modulexcite/boulder,bmw/boulder,mehmooda/boulder,patf/boulder,mehmooda/boulder,letsencrypt/boulder,sophie-h/boulder,jmhodges/boulder,ZCloud-Firstserver/boulder,kuba/boulder,r0ro/boulder,sophie-h/boulder,jmhodges/boulder,ZCloud-Firstserver/boulder,devpaul/boulder,josephyzhou/boulder,benileo/boulder,KyleChamberlin/boulder,modulexcite/boulder,ZCloud-Firstserver/boulder,jfrazelle/boulder,kuba/boulder,mozmark/boulder,jmhodges/boulder,deserted/boulder,postfix/boulder,kuba/boulder,julienschmidt/boulder,r0ro/boulder,mommel/boulder,hlandauf/boulder,jcjones/boulder,devpaul/boulder,modulexcite/boulder,kuba/boulder,jcjones/boulder,bmw/boulder,postfix/boulder,r0ro/boulder,postfix/boulder,KyleChamberlin/boulder,KyleChamberlin/boulder,lmcro/boulder,julienschmidt/boulder,jfrazelle/boulder,jfrazelle/boulder,devpaul/boulder,devpaul/boulder,benileo/boulder,jfrazelle/boulder,KyleChamberlin/boulder,jcjones/boulder,ZCloud-Firstserver/boulder