Consulta errónea: ERROR: syntax error at or near "and" LINE 4: WHERE a.numero = and a.af_rif = b.ri... ^