changed $data to $settings['limit'] as parameter of call $this->model_catalog_product->getLatestProducts