solved query isssue