Improve IssueDao select query