.

Decretos

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 dec_ano = 2017 AND dec_mes = '12' ORDER BY dec_data_publicacao DESC' at line 1
error: SELECT * FROM tb_decretos WHERE agc = AND dec_ano = 2017 AND dec_mes = '12' ORDER BY dec_data_publicacao DESC