.

Portarias

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 por_ano = 2017 AND por_mes = '12' ORDER BY por_data_publicacao DESC' at line 1
error: SELECT * FROM tb_portarias WHERE agc = AND por_ano = 2017 AND por_mes = '12' ORDER BY por_data_publicacao DESC