Error Number: 1052
Column 'comp_ano' in where clause is ambiguous
SELECT rh_folha.*, rh_funcionarios.* FROM rh_folha INNER JOIN rh_funcionarios ON rh_folha.matricula = rh_funcionarios.matricula WHERE `comp_ano` = '' AND rh_funcionarios.`cnpj` = '2' AND rh_funcionarios.`matricula` = '6267' GROUP BY rh_funcionarios.matricula ORDER BY `comp_ano` DESC, `comp_mes` ASC
Filename: /home/u854384920/domains/brejetuba.es.gov.br/apps/backend/helpers/funcoes_helper.php
Line Number: 789