why loop over something that has one element? maybe just call the query directly?