Uncaught exception: [0] unknown error entry: (function => errorHandler, args => Array, )

File: /var/www/common/postgres.class.php (Line: 78)
Function: pg_query
Args: Resource id #9, /* :: */
SELECT domain, title, description,
(
select array_accum(keyword)
from ( select keyword from q10_organic where domain = site_data2.domain order by rank desc limit 10) as a
) as keywords
FROM site_data2
WHERE site_data2.domain in ('trinidadexpress.com','sentencingcouncil.judiciary.gov.uk','bluecross.org.uk','legislation.gov.uk','defra.gov.uk','en.wikipedia.org','independent.co.uk','epetitions.direct.gov.uk','dailymail.co.uk','guardian.co.tt')


File: /var/www/q8_to_q10/q10.serptrends.com/sitesanalytics/keyword_new.php (Line: 267)
Function: query
Args: /* :: */
SELECT domain, title, description,
(
select array_accum(keyword)
from ( select keyword from q10_organic where domain = site_data2.domain order by rank desc limit 10) as a
) as keywords
FROM site_data2
WHERE site_data2.domain in ('trinidadexpress.com','sentencingcouncil.judiciary.gov.uk','bluecross.org.uk','legislation.gov.uk','defra.gov.uk','en.wikipedia.org','independent.co.uk','epetitions.direct.gov.uk','dailymail.co.uk','guardian.co.tt')


pg_query(): Query failed: ERROR: function array_accum(text) does not exist LINE 4: select array_accum(keyword) ^ HINT: No function matches the given name and argument types. You might need to add explicit type casts. /* :: */ SELECT domain, title, description, ( select array_accum(keyword) from ( select keyword from q10_organic where domain = site_data2.domain order by rank desc limit 10) as a ) as keywords FROM site_data2 WHERE site_data2.domain in ('trinidadexpress.com','sentencingcouncil.judiciary.gov.uk','bluecross.org.uk','legislation.gov.uk','defra.gov.uk','en.wikipedia.org','independent.co.uk','epetitions.direct.gov.uk','dailymail.co.uk','guardian.co.tt') in /var/www/common/postgres.class.php, line 86