Fixed query problem (asc vs desc)