This may be a permission issue as per this KB: http://www.symantec.com/docs/TECH164854
...or try simplyrunning the upgrade.bat from c:\Program Files (x86)\Symantec\Symantec Endpoint Protection Manager\bin + repair of SEPM from control Panel.
You can have a look at some of the following threads as well:
https://www-secure.symantec.com/connect/pt-br/forums/query-failed
https://www-secure.symantec.com/connect/forums/query-failed-error-message-while-accessing-sepm-console
https://www-secure.symantec.com/connect/forums/sep-console-query-failed
https://www-secure.symantec.com/connect/forums/sep11-query-failed-when-exporting-result-monitorslogrisk