select count(1) as total from chamado where 1 and clienteId= and interno is null and dataConclusao is null and year (dataAbertura) < 2017
N do Erro: 1064 - Descrição: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and interno is null and dataConclusao is null and year (dataAbertura) < 2017' at line 1