Query result not limited in 1000 rows