Is he also losing weight or having fever? Also the details of his diet. In any case a routine stool examination can indicate infection if present. The type of stools he passes also matters ,amongst other things. I suggest you visit your pediatrician again .
Next Steps
Routine stool examination. Scrupulous personal hygiene, especially if bottle fed.