Check limit to return the appropiate number of rows