Column 'id_estado' in from clause is ambiguous