Query failed: ERROR: invalid input syntax for type numeric: "" LINE 12: AND SB.id_seccao = '' ^