query fixed with array_reversed