Ver originalSELECT ...FROM usuarios LEFT JOIN categorias ON categorias.id = usuarios.id_categoria LEFT JOIN paises ON paises.id = usuarios.id_paisWHERE 1 OR (categoria.id IS NULL AND paises.id IS NULL)