potresti aggiungere alla query una condizione tipo SELECT ... WHERE campo != '0000'