SQLSTATE[42S22]: Column not found: 1054 Unknown column 'openged' in 'WHERE'
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND scc2.status = 'Ativo') AS total_comentarios
FROM sig_con...' at line 2