When selecting one, limit the query to 1 result. Reset is also better than array_shift
validate query conditions