Corrects trash = 0 in query