Is it really necessary to execute another query here?