Fix (open/closed) issue count when label excluded (#8815)
Fix (open/closed) issue count when label excluded (#8815)

* Fix (open/closed) issue count when label excluded

* Use capital sql keywords

vCaesar/gitea,go-gitea/gitea,cez81/gitea,cez81/gitea,typeless/gitea,vCaesar/gitea,typeless/gitea,lafriks/gitea,vdbt/gitea,sapk-fork/gitea,lafriks/gitea,sapk-fork/gitea,cez81/gitea,go-gitea/gitea,vdbt/gitea,typeless/gitea,typeless/gitea,lafriks/gitea,sapk-fork/gitea,go-gitea/gitea,sapk-fork/gitea