2pg_query(): Query failed: ERROR: syntax error at or near "html" at character 309/data/soleon/producao/system/database/drivers/postgre/postgre_driver.php124 Database Error

Erro Banco de Dados

Error Number:

ERROR: syntax error at or near "html" at character 309

SELECT cat.id_categoria, subcat.id_categoria, subcatitem.id_categoria FROM categorias AS cat JOIN categorias AS subcat ON cat.id_categoria = subcat.parent_cat JOIN categorias AS subcatitem ON subcat.id_categoria = subcatitem.parent_cat WHERE cat.id_categoria IN(1.html) OR subcat.id_categoria IN(1.html)