When I run the above comman from the Web Services explorer, I get Query: select ga.groupid, g.name from group_accounts ga, groups g where ga.groupid=g.groupid and ga.accountid=
Request: /admin/1.2/rest/?method=Permissions.GetReportSuiteGroups
Referrer:
Script: /home/omniture/services/admin/1.2/rest/index.html
Host: api-sbx1.omniture.com
Server: www6.sbx1.omniture.com

query(): Invalid SQL: select ga.groupid, g.name from group_accounts ga, groups g where ga.groupid=g.groupid and ga.accountid=

MySQL Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

when connecting to company-a.db.sbx1, company_a

Backtrace:
/usr/local/lib/phplib-6.1/php/db_mysql.inc:273 -- DB_Sql->haltnow
/usr/local/lib/phplib-6.1/php/company_group.class:261 -- DB_Sql->query
/home/omniture/bin/p/am/1.2/modules/Permissions/actions/GetReportSuiteGroupsAction.class.php:94 -- Company_group->get_account_groups_list
/home/omniture/bin/p/am/1.2/modules/Permissions/actions/GetReportSuiteGroupsAction.class.php:46 -- Permissions_GetReportSuiteGroupsAction->_getGroups
/home/omniture/bin/p/ap/1.1/framework/controllers/OM_FlowController.class.php:107 -- Permissions_GetReportSuiteGroupsAction->execute
/home/omniture/bin/p/ap/1.1/framework/controllers/OM_FlowController.class.php:71 -- OM_FlowController->runAction
/home/omniture/bin/p/am/1.2/lib/framework/controllers/rest/AM_RestRPCFlowController.class.php:30 -- OM_FlowController->executeAction
/home/omniture/bin/p/ap/1.1/framework/controllers/OM_FlowController.class.php:52 -- AM_RestRPCFlowController->executeAction
/home/omniture/bin/p/ap/1.1/framework/lib/filter/FilterChain.class.php:58 -- OM_FlowController->execute
/home/omniture/bin/p/ap/1.1/framework/filters/EulaCheckFilter.class.php:41 -- FilterChain->execute
/home/omniture/bin/p/ap/1.1/framework/lib/filter/FilterChain.class.php:58 -- EulaCheckFilter->execute
/home/omniture/bin/p/ap/1.1/framework/controllers/OM_Controller.class.php:338 -- FilterChain->execute
/home/omniture/bin/p/ap/1.1/framework/controllers/OM_Controller.class.php:145 -- OM_Controller->forward
/home/omniture/services/admin/1.2/rest/index.html:25 -- OM_Controller->dispatch
Session halted.