selecet döngüsü boş döndüğünde verir bu hatayı yani o anda status=1 olan yoktur.Böyle bir şey olabilir mi?