Forse dovresti aggiungere la clausola WHERE alla SELECT perchè così tiri fuori tutti i record.