×

Crisis in the soil: Fertilizer shortage and depleting land risk food security

Soil health. Farmers should stop looking as soil as dirt. It is biodiversity. [FILE]

The planting season is approaching in Kenya’s breadbasket areas, in line with the March-April-May rains.

Farmers are already queuing at National Cereals and Produce Board (NCPB) outlets to purchase subsidized fertilizer.

However, there is a shortage in supply. A spot-check by The Standard in Bomet and Kitale shows that farmers have been left in suspense as NCPB outlets are out of stock.

The shortage may be due to a recent directive from the Ministry of Agriculture and Livestock Development, which ordered the destruction of over 27,000 bags of recently imported fertilizer deemed unfit for use.

The urgency with which farmers are seeking fertilizer reflects a deeply ingrained belief that their production could be hindered without it. And they may be right.

Emerging data reveals that only a small portion of Kenya’s land can be relied upon for good food production. The rest of the soil is either too acidic, phosphorus-deficient, or carbon-deficient.

Dr Stephen Kimani, a fertilizer and soil health expert at the Kenya Agricultural and Livestock Research Organization (KALRO), attributes this to years of overuse of synthetic fertilizers.

The Agricultural Soil Management Policy (2023) highlights the decline of Kenya’s soil. The document points to the loss of fertility, noting the soil’s diminished ability to supply both macro and micronutrients in the necessary amounts, forms, and proportions for optimal plant growth.

“Synthetic fertilisers (the most common being DAP and CAN) only give us macro nutrients like phosphorus, potassium and nitrogen. Nothing more.

“Yet, plants need 18 essential nutrients to grow, 15 of which come from the soil. They include secondary elements such as calcium and magnesium, and micronutrients such as zinc, iron, and molybdenum,” Dr Kimani says.

Eng Laban Kiplagat, Agriculture Engineering Secretary at the Ministry of Agriculture, acknowledges this too.

He says: “We realize that unless we take care of the soil things might not be very good – our ability to be food secure – in the long term.

“Our soils are degraded. Most of our soils are very acidic. To feed the current population we cannot change the practice [of fertilizer use].”

In essence, Kenyan farmers must now rely on synthetic fertilizers to stand a chance at profitable production. This only spells profits for the world’s fertiliser producers.

In Kenya, fertiliser prices rose over 150 per cent from 2020 to 2022 causing hue and cry from farmers across the country.

To partially alleviate the impact of costs on farmers – majority who cannot afford the actual cost of the fertilisers – many African governments, Kenya being a prime example, subsidise fertilisers. Prior to the 2023 long rains the Kenyan government procured 472,500 metric tons of fertilizer at an estimated cost of Sh54.3 billion. This significant expenditure sucks away funds from other essential public needs.

In 2022, the world’s nine largest fertilizer producers registered combined profits amounting to USD 48.7 billion (Sh6.2trillion).

“Acidic soils fix phosphorus, making it unavailable to plants, and reducing the availability of other key nutrients like potassium,” Dr Kimani noted.

Kimani was speaking at a forum held at end of February where civil society organization Heinrich Boell Foundation (HBS) was unveiling ‘Soil Atlas – Kenya Edition’ – a publication that presents critical facts about soil; a resource that impacts food and nutrition security.

Also at the meeting was Dr Peter Mokaya, a medical doctor by training, who also heads Organic Consumers Alliance (OCA).

He said: “Why would I, a physician be here talking about soil? There is a direct link between health of the soil and the health of the ecosystem, and the health of human beings.

“All these modern illnesses like diabetes, cancer, obesity, Alzheimer’s, autism; are linked to poor soils that have been poisoned by decades of synthetic fertilisers and toxic pesticides.”

The Atlas, prepared from existing research literature, shows that in Kenya, only 20 per cent of cropland is arable. “Soil is the foundation of life. Protecting soil is not just an agricultural concern, it is essential for sustaining ecosystems, food security, and climate resilience. Soil health influences the food we eat, the water we drink, and the air we breathe,” noted Joachim Paul, Director at HBS.

But what is soil health? According to Kimani soil health takes into consideration the physical, biological and chemical properties of the soil.

Lukelysia Mwangi, a senior laboratory technician in the living soils laboratory at International Centre for Forestry Research – World Agroforestry (CIFOR-ICRAF), says that overuse of synthetic chemicals in farming has decimated soil biome.

“Healthy soils team with life. If you take a teaspoon of healthy soil, it has billions of bacteria and millions of fungi and protozoans. Soil also has other organisms such as earthworms. Their presence or absence in the soil is indicative of the health of that soil,” she says.

Speaking last year at the Africa Fertiliser and Soil Health Summit, held here in Nairobi, the then PS at the State Department of Agriculture said that Kenya’s annual consumption of [synthetic] fertilizer was 750,000 metric tonnes, “which is just 50 percent of its potential.”

According to the experts, there is no scientific reason to increase farmers’ use of synthetic fertilizer. Instead, they are advising for more incorporation of organic fertilisers such as manure and organic matter.

“At KALRO we have been doing a long term study that began in 1975 and it is still continuing. We have been tracking soil health after long term usage of synthetic fertilisers alone, organic fertilisers alone and a combination of both.

“The study results indicate that when we integrate organic and inorganic fertilisers, or when we use organic only, production grows and remains steady compared to synthetic fertilisers,” says Kimani.

Data from India shows that increase in fertilizer use in farming has not been proportional to production. In 1970 India used 54Kg of fertilizer per hectare and produced on average 1.8 tonnes of grain per hectare. In 2015, India was using 254Kg of fertilizer per hectare but only yielding 2.2 tonnes of grain. Similarly, despite applying 57Kg of fertiliser per hectare, Kenya produces less grain than Uganda; which uses only 2Kg per hectare.

“This contrast shows the limitations of relying solely on fertilisers to achieve food security,” says Dr. Harun Warui, the Lead Programme Coordinator, Agroecology and Food Rights at HBS.

Even with heavy fertliser usage food still remains nutrient deficient. The government in 2011 developed and adopted the National Food and Nutrition Security Policy, which calls for fortification of produce.

Request history8.1.26PHP Version1.24sRequest Duration8MBMemory UsageGET {category}/article/{id}/{slug}Route
    • Booting (13.47ms)time
    • Application (1.23s)time
    • 1 x Application (98.91%)
      1.23s
      1 x Booting (1.09%)
      13.47ms
      11 templates were rendered
      • 1x mainsite.articlearticle.blade.php#?blade
      • 1x mainsite.partials.topsectionsubscribetopsectionsubscribe.blade.php#?blade
      • 1x common.vocalizedvocalized.blade.php#?blade
      • 1x mainsite.partials.footerfooter.blade.php#?blade
      • 1x mainsite.layouts.appapp.blade.php#?blade
      • 1x mainsite.partials.metasmetas.blade.php#?blade
      • 1x mainsite.partials.topbartopbar.blade.php#?blade
      • 1x mainsite.partials.logo_sectionlogo_section.blade.php#?blade
      • 1x mainsite.partials.menumenu.blade.php#?blade
      • 1x mainsite.partials.streamingstreaming.blade.php#?blade
      • 1x mainsite.partials.stickybottomstickybottom.blade.php#?blade
      uri
      GET {category}/article/{id}/{slug}
      middleware
      web
      controller
      App\Http\Controllers\MainsiteController@article
      namespace
      prefix
      where
      file
      app/Http/Controllers/MainsiteController.php:610-1128
      36 statements were executed (9 duplicates)Show only duplicates466ms
      • Articles.php#513standard_digital_mainConnection Established
        Backtrace
        • app/Utils/Articles.php:513
        • app/Http/Controllers/MainsiteController.php:657
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:658
      • Articles.php#520standard_digital_main4.96msselect `id`, `site_id`, `article_category_id`, `title`, `long_title`, `thumbnail_url`, `story`, `published_at`, `premium`, `keywords`, `summary` from `articles` where `id` = '2001514692' and `published_at` <= '2025-03-27 09:01:23' and `deleted_at` is null
        Bindings
        • 0: 2001514692
        • 1: 2025-03-27 09:01:23
        Backtrace
        • app/Utils/Articles.php:520
        • app/Http/Controllers/MainsiteController.php:657
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:658
      • Articles.php#1435standard_digital_main910μsselect * from `days_quote` where `deleted_at` is null and `quote_day` = '2025-03-27'
        Bindings
        • 0: 2025-03-27
        Backtrace
        • app/Utils/Articles.php:1435
        • app/Http/Controllers/MainsiteController.php:660
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:661
      • Articles.php#147standard_digital_main870μsselect `id` from `article_categories` where `site_id` = 1 and `id` = 588 or `parent_id` = 588 and `deleted_at` is null
        Bindings
        • 0: 1
        • 1: 588
        • 2: 588
        Backtrace
        • app/Utils/Articles.php:147
        • app/Http/Controllers/MainsiteController.php:727
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:728
      • Articles.php#164standard_digital_main60.87msselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where `article_category_id` in (1, 588) and `site_id` = 1 and `deleted_at` is null and `published_at` <= '2025-03-27 09:01:23' order by `published_at` desc, `list_order` asc, `parent_category_list_order` asc limit 10 offset 0
        Bindings
        • 0: 1
        • 1: 588
        • 2: 1
        • 3: 2025-03-27 09:01:23
        Backtrace
        • app/Utils/Articles.php:164
        • app/Http/Controllers/MainsiteController.php:727
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:728
      • Articles.php#164standard_digital_main890μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (1, 588)
        Backtrace
        • app/Utils/Articles.php:164
        • app/Http/Controllers/MainsiteController.php:727
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:728
      • Articles.php#53standard_digital_main900μsselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `id` = 588
        Bindings
        • 0: 588
        Backtrace
        • app/Utils/Articles.php:53
        • app/Utils/Articles.php:338
        • app/Http/Controllers/MainsiteController.php:737
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • Articles.php#53standard_digital_main840μsselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `id` is null
        Backtrace
        • app/Utils/Articles.php:53
        • app/Utils/Articles.php:343
        • app/Http/Controllers/MainsiteController.php:737
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • Articles.php#55standard_digital_mainConnection Established
        Backtrace
        • app/Utils/Articles.php:55
        • app/Utils/Articles.php:343
        • app/Http/Controllers/MainsiteController.php:737
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • Articles.php#55standard_digital_main4.71msselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `id` is null
        Backtrace
        • app/Utils/Articles.php:55
        • app/Utils/Articles.php:343
        • app/Http/Controllers/MainsiteController.php:737
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • Articles.php#57standard_digital_mainConnection Established
        Backtrace
        • app/Utils/Articles.php:57
        • app/Utils/Articles.php:343
        • app/Http/Controllers/MainsiteController.php:737
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • Articles.php#57standard_digital_main3.69msselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `id` is null
        Backtrace
        • app/Utils/Articles.php:57
        • app/Utils/Articles.php:343
        • app/Http/Controllers/MainsiteController.php:737
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • Articles.php#60standard_digital_main1.14msselect `id`, `name`, `short_name`, `parent_id`, `site_id` from `article_categories` where `refer_id` is null
        Backtrace
        • app/Utils/Articles.php:60
        • app/Utils/Articles.php:343
        • app/Http/Controllers/MainsiteController.php:737
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
      • Articles.php#688standard_digital_main93.21msselect `id`, `site_id`, `article_category_id`, `title`, `thumbnail_url`, `story`, `published_at`, `premium` from `articles` where (`keywords` LIKE '%[\"National Cereals and Produce Board\",\"Farmers Fertilizer\",\"Fertilizer Shortage\",\"Soil Acidity\"]%') and `site_id` = 1 and `published_at` <= '2025-03-27 09:01:23' and `deleted_at` is null and `id` not in ('2001514692') order by `published_at` desc limit 4 offset 0
        Bindings
        • 0: %["National Cereals and Produce Board","Farmers Fertilizer","Fertilizer Shortage","Soil Acidity"]%
        • 1: 1
        • 2: 2025-03-27 09:01:23
        • 3: 2001514692
        Backtrace
        • app/Utils/Articles.php:688
        • app/Http/Controllers/MainsiteController.php:821
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:822
      • Articles.php#424standard_digital_main86.1msselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where (`site_id` = 1 or `site_id` = 16 or `site_id` = 20) and `deleted_at` is null and `published_at` <= '2025-03-27 09:01:23' and `published_at` >= '2025-03-27 08:01:23' order by RAND(), `published_at` desc, `homepage_list_order` asc, `list_order` asc limit 4 offset 0
        Bindings
        • 0: 1
        • 1: 16
        • 2: 20
        • 3: 2025-03-27 09:01:23
        • 4: 2025-03-27 08:01:23
        Backtrace
        • app/Utils/Articles.php:424
        • app/Http/Controllers/MainsiteController.php:825
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:826
      • Articles.php#424standard_digital_main850μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (4, 588)
        Backtrace
        • app/Utils/Articles.php:424
        • app/Http/Controllers/MainsiteController.php:825
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:826
      • Articles.php#147standard_digital_main810μsselect `id` from `article_categories` where `site_id` = 1 and `id` = 480 or `parent_id` = 480 and `deleted_at` is null
        Bindings
        • 0: 1
        • 1: 480
        • 2: 480
        Backtrace
        • app/Utils/Articles.php:147
        • app/Http/Controllers/MainsiteController.php:829
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:830
      • Articles.php#164standard_digital_main910μsselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where `article_category_id` in (480, 481, 482, 719) and `site_id` = 1 and `deleted_at` is null and `published_at` <= '2025-03-27 09:01:23' order by `published_at` desc, `list_order` asc, `parent_category_list_order` asc limit 4 offset 0
        Bindings
        • 0: 480
        • 1: 481
        • 2: 482
        • 3: 719
        • 4: 1
        • 5: 2025-03-27 09:01:23
        Backtrace
        • app/Utils/Articles.php:164
        • app/Http/Controllers/MainsiteController.php:829
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:830
      • Articles.php#164standard_digital_main700μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (480, 482)
        Backtrace
        • app/Utils/Articles.php:164
        • app/Http/Controllers/MainsiteController.php:829
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:830
      • Articles.php#753standard_digital_main970μsselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where (`premium` = 1 or `article_category_id` = 486) and `site_id` = '1' and `deleted_at` is null and `published_at` <= '2025-03-27 09:01:23' and `homepage_list_order` is not null order by `published_at` desc, `homepage_list_order` asc, `list_order` asc limit 4 offset 0
        Bindings
        • 0: 1
        • 1: 486
        • 2: 1
        • 3: 2025-03-27 09:01:23
        Backtrace
        • app/Utils/Articles.php:753
        • app/Http/Controllers/MainsiteController.php:837
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:838
      • Articles.php#753standard_digital_main690μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (46, 588)
        Backtrace
        • app/Utils/Articles.php:753
        • app/Http/Controllers/MainsiteController.php:837
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:838
      • Articles.php#819standard_digital_main2.15msselect `id`, `site_id`, `article_category_id`, `title`, `thumbnail_url`, `story`, `published_at`, `premium` from `articles` where `id` < '2001514692' and `site_id` = 1 and `published_at` <= '2025-03-27 09:01:23' and `deleted_at` is null order by `id` desc limit 1
        Bindings
        • 0: 2001514692
        • 1: 1
        • 2: 2025-03-27 09:01:23
        Backtrace
        • app/Utils/Articles.php:819
        • app/Http/Controllers/MainsiteController.php:841
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:842
      • Articles.php#819standard_digital_main890μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (4)
        Backtrace
        • app/Utils/Articles.php:819
        • app/Http/Controllers/MainsiteController.php:841
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:842
      • Articles.php#865standard_digital_main1.23msselect `id`, `site_id`, `article_category_id`, `title`, `thumbnail_url`, `story`, `published_at`, `premium` from `articles` where `id` > '2001514692' and `site_id` = 1 and `deleted_at` is null and `published_at` <= '2025-03-27 09:01:23' limit 1
        Bindings
        • 0: 2001514692
        • 1: 1
        • 2: 2025-03-27 09:01:23
        Backtrace
        • app/Utils/Articles.php:865
        • app/Http/Controllers/MainsiteController.php:841
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:842
      • Articles.php#865standard_digital_main880μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (588)
        Backtrace
        • app/Utils/Articles.php:865
        • app/Http/Controllers/MainsiteController.php:841
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:842
      • Articles.php#1288standard_digital_main20.09msselect `id`, `site_id`, `article_category_id`, `title`, `thumbnail_url`, `story`, `published_at`, `premium` from `articles` where `published_at` <= '2025-03-27 09:01:23' and `article_category_id` = 588 and `site_id` = 1 and `id` not in ('2001514692') order by `homepage_list_order` asc, `published_at` desc limit 6 offset 0
        Bindings
        • 0: 2025-03-27 09:01:23
        • 1: 588
        • 2: 1
        • 3: 2001514692
        Backtrace
        • app/Utils/Articles.php:1288
        • app/Http/Controllers/MainsiteController.php:845
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:846
      • Articles.php#1288standard_digital_main790μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (588)
        Backtrace
        • app/Utils/Articles.php:1288
        • app/Http/Controllers/MainsiteController.php:845
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:846
      • Builder.php#20standard_digital_main900μsselect `videos`.`id`, `videos`.`video_category_id`, `videos`.`title`, `videos`.`video_url`, `videos`.`description`, `videos`.`published_at`, `videos`.`thumbnail_url` from `videos` inner join `video_categories` on `video_categories`.`id` = `videos`.`video_category_id` where (`keywords` LIKE '%[\"National Cereals and Produce Board\",\"Farmers Fertilizer\",\"Fertilizer Shortage\",\"Soil Acidity\"]%') and `videos`.`deleted_at` is null and `video_categories`.`video_type_id` = 1 order by `published_at` desc limit 3 offset 0
        Bindings
        • 0: %["National Cereals and Produce Board","Farmers Fertilizer","Fertilizer Shortage","Soil Acidity"]%
        • 1: 1
        Backtrace
        • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
        • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
        • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
      • Articles.php#3841standard_digital_main870μsselect count(std_trend_article_id) as count, std_trend_article_id from `std_article_trends` group by `std_trend_article_id` order by `count` desc limit 20
        Backtrace
        • app/Utils/Articles.php:3841
        • app/Http/Controllers/MainsiteController.php:853
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:854
      • Articles.php#3867standard_digital_main970μsselect `id`, `article_category_id`, `title`, `thumbnail_url`, `published_at`, `premium` from `articles` where `id` in (2001249065, 2001514725, 2001514712, 2001514717, 2001514714, 2001514775, 2001514788, 2001514624, 2001514785, 2001514720, 2001514768, 2001514776, 2001514349, 2000198221, 2001514618, 2001514690, 2001514773, 2001514697, 2001514617, 2001454171) and `deleted_at` is null and `published_at` <= '2025-03-27 09:01:23' and `homepage_list_order` is not null order by `published_at` desc, `homepage_list_order` asc, `list_order` asc limit 5
        Bindings
        • 0: 2001249065
        • 1: 2001514725
        • 2: 2001514712
        • 3: 2001514717
        • 4: 2001514714
        • 5: 2001514775
        • 6: 2001514788
        • 7: 2001514624
        • 8: 2001514785
        • 9: 2001514720
        • 10: 2001514768
        • 11: 2001514776
        • 12: 2001514349
        • 13: 2000198221
        • 14: 2001514618
        • 15: 2001514690
        • 16: 2001514773
        • 17: 2001514697
        • 18: 2001514617
        • 19: 2001454171
        • 20: 2025-03-27 09:01:23
        Backtrace
        • app/Utils/Articles.php:3867
        • app/Http/Controllers/MainsiteController.php:853
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:854
      • Articles.php#3867standard_digital_main850μsselect `id`, `name`, `parent_id` from `article_categories` where `article_categories`.`id` in (1, 56, 588)
        Backtrace
        • app/Utils/Articles.php:3867
        • app/Http/Controllers/MainsiteController.php:853
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php:408
        • app/Http/Controllers/MainsiteController.php:854
      • Builder.php#20standard_digital_main1.37msselect `authors`.*, `article_authors`.`article_id` as `pivot_article_id`, `article_authors`.`author_id` as `pivot_author_id` from `authors` inner join `article_authors` on `authors`.`id` = `article_authors`.`author_id` where `article_authors`.`article_id` in (2001514768, 2001514775, 2001514776, 2001514785, 2001514788) and `authors`.`deleted_at` is null
        Backtrace
        • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:20
        • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:103
        • vendor/laravel/framework/src/Illuminate/Cache/Repository.php:397
        • vendor/rennokki/laravel-eloquent-query-cache/src/Traits/QueryCacheModule.php:84
        • vendor/rennokki/laravel-eloquent-query-cache/src/Query/Builder.php:21
      • CookieTool.php#185standard_digital_main850μsselect * from `settings` where `meta_name` = 'article_age' limit 1
        Bindings
        • 0: article_age
        Backtrace
        • app/Utils/CookieTool.php:185
        • app/Http/Controllers/MainsiteController.php:870
        • vendor/laravel/framework/src/Illuminate/Routing/Controller.php:54
        • vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php:43
        • vendor/laravel/framework/src/Illuminate/Routing/Route.php:260
      • helper.php#424standard_digital_main1.01msselect * from article_categories where id = '588'
        Backtrace
        • app/Library/helper.php:424
        • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
        • vendor/laravel/framework/src/Illuminate/View/View.php:195
      • helper.php#424standard_digital_main780μsselect * from article_categories where id = '588'
        Backtrace
        • app/Library/helper.php:424
        • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
        • vendor/laravel/framework/src/Illuminate/View/View.php:195
      • helper.php#424standard_digital_main730μsselect * from article_categories where id = '588'
        Backtrace
        • app/Library/helper.php:424
        • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
        • vendor/laravel/framework/src/Illuminate/View/View.php:195
      • helper.php#424standard_digital_main750μsselect * from article_categories where id = '588'
        Backtrace
        • app/Library/helper.php:424
        • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
        • vendor/laravel/framework/src/Illuminate/View/View.php:195
      • Articles.php#1350standard_digital_main166msselect * from `articles` where `deleted_at` is null and `published_at` <= '2025-03-27 09:01:24' and (`keywords` like '%National Cereals and Produce Board%' or `keywords` like '%Farmers Fertilizer%' or `keywords` like '%Fertilizer Shortage%' or `keywords` like '%Soil Acidity%') and (`site_id` = 1 or `site_id` = 16 or `site_id` = 20) and `id` <> '2001514692' order by `published_at` desc limit 3
        Bindings
        • 0: 2025-03-27 09:01:24
        • 1: %National Cereals and Produce Board%
        • 2: %Farmers Fertilizer%
        • 3: %Fertilizer Shortage%
        • 4: %Soil Acidity%
        • 5: 1
        • 6: 16
        • 7: 20
        • 8: 2001514692
        Backtrace
        • app/Utils/Articles.php:1350
        • app/Utils/Articles.php:1674
        • view::mainsite.article:568
        • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
      • app.blade.php#825standard_digital_main890μsselect * from `favourite_topics` where `status` = 1
        Bindings
        • 0: 1
        Backtrace
        • view::mainsite.layouts.app:825
        • vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:110
        • vendor/laravel/framework/src/Illuminate/View/Engines/PhpEngine.php:58
        • vendor/laravel/framework/src/Illuminate/View/Engines/CompilerEngine.php:70
        • vendor/laravel/framework/src/Illuminate/View/View.php:195
      App\Models\Category
      381Category.php#?
      App\Models\Article
      38Article.php#?
      App\Models\Trending
      20Trending.php#?
      App\Topic
      16Topic.php#?
      App\Models\Author
      14Author.php#?
          _token
          J1lZQzHJD2ViTAukUq0qkRn0qR9CTx5dy3S22OCz
          offset
          0
          _previous
          array:1 [ "url" => "http://www.standardmedia.co.ke/main-staging/national/article/2001514692/crisis...
          _flash
          array:2 [ "old" => [] "new" => [] ]
          path_info
          /national/article/2001514692/crisis-in-the-soil-fertilizer-shortage-and-depleting-land-risk-food-security
          status_code
          200
          
          status_text
          OK
          format
          html
          content_type
          text/html; charset=UTF-8
          request_query
          []
          
          request_request
          []
          
          request_headers
          0 of 0
          array:23 [ "cf-ray" => array:1 [ 0 => "926cac101c88f60a-EWR" ] "x-forwarded-for" => array:1 [ 0 => "18.222.188.129" ] "host" => array:1 [ 0 => "www.standardmedia.co.ke" ] "cf-connecting-ip" => array:1 [ 0 => "18.222.188.129" ] "accept-encoding" => array:1 [ 0 => "gzip, br" ] "priority" => array:1 [ 0 => "u=0, i" ] "x-forwarded-proto" => array:1 [ 0 => "https" ] "sec-fetch-dest" => array:1 [ 0 => "document" ] "sec-fetch-user" => array:1 [ 0 => "?1" ] "cf-visitor" => array:1 [ 0 => "{"scheme":"https"}" ] "cf-ipcountry" => array:1 [ 0 => "US" ] "sec-fetch-mode" => array:1 [ 0 => "navigate" ] "cdn-loop" => array:1 [ 0 => "cloudflare; loops=1" ] "sec-fetch-site" => array:1 [ 0 => "none" ] "accept" => array:1 [ 0 => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7" ] "connection" => array:1 [ 0 => "Keep-Alive" ] "user-agent" => array:1 [ 0 => "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" ] "pragma" => array:1 [ 0 => "no-cache" ] "cache-control" => array:1 [ 0 => "no-cache" ] "sec-ch-ua" => array:1 [ 0 => ""HeadlessChrome";v="129", "Not=A?Brand";v="8", "Chromium";v="129"" ] "sec-ch-ua-mobile" => array:1 [ 0 => "?0" ] "sec-ch-ua-platform" => array:1 [ 0 => ""Windows"" ] "upgrade-insecure-requests" => array:1 [ 0 => "1" ] ]
          request_cookies
          []
          
          response_headers
          0 of 0
          array:5 [ "content-type" => array:1 [ 0 => "text/html; charset=UTF-8" ] "cache-control" => array:1 [ 0 => "no-cache, private" ] "date" => array:1 [ 0 => "Thu, 27 Mar 2025 06:01:24 GMT" ] "set-cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6ImNTTEx4OWRhY0JQeS83RmJVV3p0Tmc9PSIsInZhbHVlIjoiMGxmclFMN3Q5WDl6enowQkNpVDdZZHVtY2syNGdoakJidmFoUUdkOFBZNmRQYTNtMUtiN3piNmpZTWdEKzNjQ05oWHRqNVpFT1JrTG5qN2tweXVtQ0NJaEZiTDVhaWl1V1hDcDZJZ2o5OXJXVXhHaTJwRFdYUGd5Y3RiL0NTZXYiLCJtYWMiOiJmNDQ1ODZhMGU4MGM2MWY3Zjg5MDQ5NDliOTUwM2FjM2RkODljNWExNmE3ZTFmMmI5MzU0MmQwOGFmMWNhZDZmIiwidGFnIjoiIn0%3D; expires=Sat, 26 Apr 2025 16:30:24 GMT; Max-Age=2629740; path=/; samesite=laxXSRF-TOKEN=eyJpdiI6ImNTTEx4OWRhY0JQeS83RmJVV3p0Tmc9PSIsInZhbHVlIjoiMGxmclFMN3Q5WDl6enowQkNpVDdZZHVtY2syNGdoakJidmFoUUdkOFBZNmRQYTNtMUtiN3piNmpZTWdEKzNjQ05oWHRqN" 1 => "thestandardmediagroup_session=eyJpdiI6IlM4WldadlNxNjQ3WjFqRHdRM2xzbWc9PSIsInZhbHVlIjoiK1RROVMzNHZVTXduZ0Z6M2xZcWxDZXJRUFAzSTRCeTFYWEV3SE5ERTZZNGdZajIwZzNMbEhEUm02REVXbHR3TGZCZlZyME0rVFd4VkFucS9hMktyZ0VQVkpadFVPT01OT3BnZkZ4VEtTQnh5SElVQmtsZnhIeVMxclZ4NTBDNjUiLCJtYWMiOiI2MWM1NzgxMDk0YmMyMWJmZWFkN2QyZDQ0NWY0MjBlODdiYzcxMmY4ZDEzZWE0NGM1ZmIwYThmY2FhZThlNjliIiwidGFnIjoiIn0%3D; expires=Sat, 26 Apr 2025 16:30:24 GMT; Max-Age=2629740; path=/; httponly; samesite=laxthestandardmediagroup_session=eyJpdiI6IlM4WldadlNxNjQ3WjFqRHdRM2xzbWc9PSIsInZhbHVlIjoiK1RROVMzNHZVTXduZ0Z6M2xZcWxDZXJRUFAzSTRCeTFYWEV3SE5ERTZZNGdZajIwZzNMbEhEUm" ] "Set-Cookie" => array:2 [ 0 => "XSRF-TOKEN=eyJpdiI6ImNTTEx4OWRhY0JQeS83RmJVV3p0Tmc9PSIsInZhbHVlIjoiMGxmclFMN3Q5WDl6enowQkNpVDdZZHVtY2syNGdoakJidmFoUUdkOFBZNmRQYTNtMUtiN3piNmpZTWdEKzNjQ05oWHRqNVpFT1JrTG5qN2tweXVtQ0NJaEZiTDVhaWl1V1hDcDZJZ2o5OXJXVXhHaTJwRFdYUGd5Y3RiL0NTZXYiLCJtYWMiOiJmNDQ1ODZhMGU4MGM2MWY3Zjg5MDQ5NDliOTUwM2FjM2RkODljNWExNmE3ZTFmMmI5MzU0MmQwOGFmMWNhZDZmIiwidGFnIjoiIn0%3D; expires=Sat, 26-Apr-2025 16:30:24 GMT; path=/XSRF-TOKEN=eyJpdiI6ImNTTEx4OWRhY0JQeS83RmJVV3p0Tmc9PSIsInZhbHVlIjoiMGxmclFMN3Q5WDl6enowQkNpVDdZZHVtY2syNGdoakJidmFoUUdkOFBZNmRQYTNtMUtiN3piNmpZTWdEKzNjQ05oWHRqN" 1 => "thestandardmediagroup_session=eyJpdiI6IlM4WldadlNxNjQ3WjFqRHdRM2xzbWc9PSIsInZhbHVlIjoiK1RROVMzNHZVTXduZ0Z6M2xZcWxDZXJRUFAzSTRCeTFYWEV3SE5ERTZZNGdZajIwZzNMbEhEUm02REVXbHR3TGZCZlZyME0rVFd4VkFucS9hMktyZ0VQVkpadFVPT01OT3BnZkZ4VEtTQnh5SElVQmtsZnhIeVMxclZ4NTBDNjUiLCJtYWMiOiI2MWM1NzgxMDk0YmMyMWJmZWFkN2QyZDQ0NWY0MjBlODdiYzcxMmY4ZDEzZWE0NGM1ZmIwYThmY2FhZThlNjliIiwidGFnIjoiIn0%3D; expires=Sat, 26-Apr-2025 16:30:24 GMT; path=/; httponlythestandardmediagroup_session=eyJpdiI6IlM4WldadlNxNjQ3WjFqRHdRM2xzbWc9PSIsInZhbHVlIjoiK1RROVMzNHZVTXduZ0Z6M2xZcWxDZXJRUFAzSTRCeTFYWEV3SE5ERTZZNGdZajIwZzNMbEhEUm" ] ]
          session_attributes
          0 of 0
          array:4 [ "_token" => "J1lZQzHJD2ViTAukUq0qkRn0qR9CTx5dy3S22OCz" "offset" => 0 "_previous" => array:1 [ "url" => "http://www.standardmedia.co.ke/main-staging/national/article/2001514692/crisis-in-the-soil-fertilizer-shortage-and-depleting-land-risk-food-security" ] "_flash" => array:2 [ "old" => [] "new" => [] ] ]
          ClearShow all
          Date ↕MethodURLData
          #12025-03-27 09:01:24GET/main-staging/national/article/2001514692/crisis-in-the-soil-fertilizer-shortage-and-depleting-land-risk-food-security1136469