potresti usare la clausola LIMIT per indicare alla query di tirare fuori un solo record.