ERROR: operator does not exist: integer = character varying at character 256HINT: No operator matches the given name and argument type(s). You might need to add explicit type casts.STATEMENT: SELECT c.*, g.name AS groupname, cc.name, cc.language AS category_lang, s.name AS sect_name, u.name AS editor, f.ordering AS fpordering, v.name AS author FROM content AS c INNER JOIN categories AS cc ON cc.id = c.catid INNER JOIN sections AS s ON s.id = cc.section AND s.scope='content' INNER JOIN content_frontpage AS f ON f.content_id = c.id INNER JOIN core_acl_aro_groups AS g ON g.group_id = c.access LEFT JOIN users AS u ON u.id = c.checked_out LEFT JOIN users AS v ON v.id = c.created_by WHERE c.state >= 0 ORDER BY f.ordering LIMIT 10 OFFSET 0
s.id = cc.section
s.id::VARCHAR = cc.section
CAST(s.id AS VARCHAR) = cc.section
CAST(