Diclofenac and ibuprofen are the most commonly used non-steroidal anti-inflammatory drugs (NSAIDs), accounting for 22 % and 51 % respectively of total NSAIDs consumption (Conaghan 2012; Zhang et al. 2020). Diclofenac and ibuprofen are the most commonly detected NSAIDs in the environment due to their large consumption in daily life and incomplete removal during wastewater treatment processes (Zhang et al. 2020). Diclofenac was included in the previous watch list of substances to be established alongside the list of priority substances by the European Union (EU 2013; Vieno and Sillanpää 2014). Wastewater treatment plants (WWTPs) are known to contribute to the spread of pharmaceutical residues in the environment through the disposal of sewage sludge and application of sewage sludge as organic manures. Due to their large consumption, these NSAIDs have been detected worldwide in sewage sludge (Vieno and Sillanpää 2014).

The widespread occurrence of diclofenac and ibuprofen in the aquatic ecosystems raises concerns about their potential risks to aquatic organisms (Zhang et al. 2020). Non-target organisms might be adversely affected by relevant ambient low-level concentrations of these NSAIDs after long-time exposures (Du et al. 2016). Ibuprofen and diclofenac were recently found to impair the cardiovascular development of zebrafish (Danio rerio) at low environmentally relevant concentrations (Zhang et al. 2020). Toxicity data of the target compounds are presented in Table 1.

Diclofenac and ibuprofen are prone to adsorption onto sewage sludge based on the criteria for predicting a compound sorption behavior (Verlicchi and Zambello 2015) and their Log Kow values as shown in Table S1 (Supplementary material).This implies that sewage sludge can serve as an important reservoir for these compounds. Therefore, concentrations of diclofenac and ibuprofen in sludge can give an important indication of their pollution levels. Sewage sludge is such a complex matrix that contains substances that can interfere with the determination of analytes of interest and this interference may have negative impact on the whole analytical process (Pérez-Lemus et al. 2019). It is therefore necessary to develop an efficient extraction protocol and clean-up procedure to eliminate or reduce such interferences.

The most commonly applied extraction techniques for diclofenac and ibuprofen determination in sewage sludge are ultrasound assisted extraction (UAE), pressurized liquid extraction (PLE) and microwave assisted extraction (MAE) (Pérez-Lemus et al. 2019; Lonappan et al. 2016; Guerra et al. 2014). These techniques usually involve long and laborious analytical processes and the use of relatively expensive equipment (Ajibola et al. 2020a; Pérez-Lemus et al. 2019). Liquid chromatography coupled to mass spectrometry or tandem mass spectrometry has been mostly employed for the determination of these NSAIDs due to its high sensitivity and selectivity (Pérez-Lemus et al. 2019; Rossini et al. 2016; Lonappan et al. 2016; Peysson and Vulliet 2013). However, these instruments are not readily available in most laboratories of developing countries due to the associated high acquisition and maintenance cost (Ajibola et al. 2020b). Hence, the applicability of the more readily available and affordable high performance liquid chromatography using ultraviolet or diode-array detection has also been demonstrated for these NSAIDs determination (Ashfaq et al. 2017; Hlengwa and Mahlambi 2020).

One of the green and environment-friendly sample preparation techniques recently applied for the determination of pharmaceuticals in sewage sludge is the quick, easy, cheap, effective, rugged and safe (QuEChERS) extraction (Nannou et al. 2019; Pérez-Lemus et al. 2019). QuEChERS extraction offers advantages such as low solvent consumption, rapidity, low cost and simplicity (Ajibola et al. 2020a; Anastassiades et al. 2003). Despite the aforementioned advantages of QuEChERS extraction only few studies (Rossini et al. 2016; Peysson and Vulliet 2013) have exploited, so far, the applicability of QuEChERS method for the extraction of diclofenac and ibuprofen from sewage sludge. QuEChERS methods were recently developed and applied successfully for determination of multiclass antibiotics in sewage sludge (Ajibola et al. 2020a) and fluoroquinolone antibiotics in wastewater (Ajibola et al. 2020b) from WWTPs in Nigeria. There is currently a paucity of analytical and environmental data on the occurrence and potential ecological risks of diclofenac and ibuprofen residues in sewage sludge from WWTPs in Africa, including Nigeria. To the best of authors’ knowledge only one study (Olarinmoye et al. 2016) reported, till date, the occurrence of diclofenac and ibuprofen in sewage sludge from WWTPs in Nigeria. Furthermore, ibuprofen is an over-the-counter drug in Nigeria and both NSAIDs are commonly prescribed. Consequently, there is high level of human consumption of these drugs and their presence is anticipated in sewage sludge from Nigerian WWTPs. Moreover, the common fates of sewage sludge in the Nigerian WWTPs investigated in the present study are land application for agricultural purposes and disposal into dumpsites. As a result, diclofenac and ibuprofen residues may enter surface water via runoff from soil or leach into groundwater from dumpsites. Therefore, the presence of diclofenac and ibuprofen in sewage sludge samples may pose a potential threat for the soil and aquatic ecosystem.

Against this background, the objective of this work was to optimize a QuEChERS based extraction method for the analytical determination of diclofenac and ibuprofen in sewage sludge. This work was also aimed at investigating the occurrence and potential ecological risks of diclofenac and ibuprofen residues in sewage sludge from three Nigerian WWTPs. This study expands our knowledge on the applicability of QuEChERS extraction method for determination of target NSAIDs in sewage sludge. To the best of our knowledge, this is the first report on the ecological risk assessment of diclofenac and ibuprofen residues in sewage sludge from municipal and hospital WWTPs in Nigeria.

Materials and Methods

Analytical standards of diclofenac and ibuprofen as well as Na2EDTA.2H2O salt were purchased from Sigma Aldrich (Steinheim, Germany). Acetonitrile and methanol of HPLC grade were obtained from Merck (Darmstadt, Germany). Ultrapure water was provided by a Milli-Q water purification system (Merck, Germany). Sodium chloride was purchased from Acros Organics (Denmark) while magnesium sulphate was purchased from Acros Organics (Germany). Sodium acetate was purchased from Fisher Scientific (United Kingdom). Formic acid of analytical grade was used. Dispersive-SPE sorbent of primary and secondary amine (PSA bulk sorbent) was purchased from Supelco (Bellefonte, USA). Stock standard solutions (100 µg mL− 1) of diclofenac and ibuprofen were prepared in acetonitrile. Standard working solutions were prepared from the stock solutions. Some relevant physicochemical properties of target compounds are presented in Table S1 (Supplementary material).

Sewage sludge samples were collected from three WWTPs in Lagos and Ibadan, South-Western Nigeria: Alausa WWTP in Lagos (GPS: 6.6164143, 3.3609648), Ijaiye WWTP in Lagos (GPS: 6.6434736, 3.325676) and University College Hospital (UCH) WWTP in Ibadan (GPS: 7.4056697, 3.9038453). While Alausa WWTP is a typical urban municipal WWTP, Ijaiye and UCH WWTPs are hospital WWTPs. UCH and Alausa WWTPs employ the activated sludge process of treatment while Ijaiye WWTP incorporates a membrane bioreactor with anaerobic digestion as treatment processes. Details about the characteristics and operational parameters of the investigated WWTPs have been presented in a previous study (Ajibola et al. 2020a). Pre-cleaned amber glass bottles were used for samples collection. The samples were transported immediately into the laboratory in an insulated box (cooler) with ice to keep the temperature below 4 ℃ during transportation. On arrival in the laboratory the samples were stored in the freezer at −20 ℃. Sewage sludge samples were collected from the three WWTPs in September 2017 (first sampling) and September 2018 (second sampling). In September 2017, both primary and secondary sludge samples were collected from UCH WWTP for five consecutive days, secondary sludge samples were collected from Ijaiye WWTP for three consecutive days and one secondary sludge sample was collected from Alausa WWTP. In the second sampling (September 2018), sewage sludge samples were collected for three consecutive days from UCH WWTP and Ijaiye WWTP. Sewage sludge samples could not be collected at Alausa WWTP for the second sampling campaign. Three grab samples collected daily were pooled to give a single sample (approximately 2 L) of sludge per day. Sewage sludge samples were air-dried, ground, sieved, wrapped with aluminum foil and stored in the freezer before QuEChERS extraction. A mixture of representative quantities of all sewage sludge samples (primary and secondary sewage sludge) was used for performing optimization and validation. The spiking procedure of sewage sludge involved the spiking of a mixed standard solution of target NSAIDs, vigorously shaken on a vortex mixer to ensure that the analytes have sufficient contact with the sludge sample. The samples were left in the dark overnight to enable sufficient interaction of analytes with the sewage sludge and to remove the solvent introduced during spiking (Ajibola et al. 2020a; Peysson and Vulliet 2013).

The optimized QuEChERS extraction involves the weighing of 2 g dried and homogenized sludge sample into a 50 mL Falcon® polypropylene centrifuge tube. 200 µL of water was added into the centrifuge tube and shaken vigorously. The samples were left in the dark overnight so as to allow the solvent introduced to evaporate. 10 mL of 0.1 M EDTA was added and manually shaken. Afterwards, 8 mL of acetonitrile was added followed by 2 mL of methanol. The mixture was manually shaken and vortex-mixed for 1 min. Acetate buffer salt (consisting of 1 g CH3COONa and 4 g MgSO4) was added. The centrifuge tube was immediately hand-shaken so as to prevent the coagulation of MgSO4, and immediately vortex-mixed for 2 minutes. Centrifugation of the sample was afterwards carried out for 15 minutes at 3,500 rpm.

Dispersive-solid phase extraction (d-SPE) was employed for the clean-up of extracts from QuEChERS extraction. The organic phase of QuEChERS extraction was transferred into a 15 mL polypropylene centrifuge tube containing the clean-up sorbent (150 mg PSA + 450 mg MgSO4). The mixture was shaken manually, vortex-mixed for 1 min and centrifuged at 1,000 rpm for 5 minutes. The supernatant solution was decanted into a glass vial and evaporated gently to dryness. The residue was reconstituted with 2 mL mixture of acetonitrile and acidified water (pH of 3.0), 80:20 (v/v), resulting in an enrichment factor of 5. The reconstituted residue was transferred into a 2 mL vial for HPLC analysis.

Chromatographic separation and detection of target compounds was performed using an Agilent Series 1100 HPLC system equipped with UV and fluorescence detectors. The HPLC system was equipped with an Agilent degasser, a pump and an auto-sampler. Chromatographic separation of the analytes was achieved with a Zorbax Eclipse XDB-C18 column (4.6 mm x 150 mm, 5 µm) at ambient temperature. The mobile phase is a mixture of acetonitrile and ultrapure water (acidified to pH 3.0 with formic acid), 60:40 (v/v). Isocratic elution was carried out at a flow rate of 0.8 mL min− 1. Three minutes of re-equilibration was programmed between successive injections and the injection volume was 20 µL. The wavelength of 200 nm was used for UV detection. Quantification of target compounds was carried out using the matrix-matched calibration curves constructed by spiking matrix extracts after the extraction.

Analyses of procedural blanks were carried out to ensure that the reagents used were free of the analytes of interest. In order to ascertain if the HPLC mobile phase was free of diclofenac and ibuprofen residues, 20 µL of the mobile phase (acetonitrile/acidified water) was injected into the HPLC instrument. The procedural blanks and mobile phase contained no ibuprofen and diclofenac residues. Between successive injections of samples into the HPLC instrument, solvent blank (consisting of only mobile phase) injections were carried out to avoid carry over from a previous injection.

Linearity was assessed by matrix-matched calibration curves generated by spiking the sludge extracts at four concentration levels between 0.1 µg mL− 1 and 10 µg mL− 1 for ibuprofen and three concentration levels between 0.5 µg mL− 1 and 10 µg mL− 1 for diclofenac. Extraction and overall recoveries were determined by spiking sludge samples at two different concentrations (1 µg g− 1 and 10 µg g− 1). Extraction recovery is the extraction efficiency of the analyte in QuEChERS extraction. Overall recovery is the performance of the entire analytical method which includes the extraction step, d-SPE clean-up and instrumental performance. For the calculation of overall recovery, the responses of pre-extraction spike samples were compared with the responses of the corresponding standard solution while extraction recovery was calculated by comparing the responses of pre-extraction spike samples with those of the post-extraction spike samples at the corresponding concentrations. Mathematically,

$$ExtractionRecovery\left(\%\right)=\frac{Concentration\;of\;analyte\;in\;Preextraction\;spike\;sample}{Concentration\;of\;analyte\;in\;postextraction\;spike\;sample}X100$$
$$Overall\;Recovery\left(\%\right)=\frac{Concentration\;of\;analyte\;in\;Preextraction\;spike\;sample}{Concentration\;of\;analyte\;in\;standard\;solution}X100$$

Precision of the method was appraised through intra-day and inter-day analyses. The intra-day (repeatability) and inter-day (reproducibility) were performed at 1 µg g− 1 in three replicate determinations and were expressed as relative standard deviation (RSD, %). Limit of detection (MLOD) and limit of quantification (MLOQ) of the method were determined through the matrix-matched calibration curves obtained by spiking sludge samples prior to extractions at a low concentration level (Gago-Ferrero et al. 2015) of 1.0 µg g− 1.The variation (standard deviation) of the responses (concentrations) of the replicate determinations was multiplied by a factor of 3.3 and divided by the slope of the calibration curve for calculating MLOD while the variation (standard deviation) of the responses (concentrations) of the replicate determinations was multiplied by 10 and divided by the slope of the calibration curve for calculating MLOQ.

Risk assessment of ibuprofen and diclofenac residues in sewage sludge (secondary sludge) was evaluated by calculating risk quotient (RQ) values. Toxicity data (EC50) was obtained from literature for four different trophic levels: fish, daphnia, algae and bacteria (Verlicchi et al. 2012; Sanderson et al. 2003; Ra et al. 2008). Details concerning the toxicity data and literature sources are presented in Table 1. Predicted no effect concentrations for water (PNECwater) was calculated by dividing EC50 by an assessment factor of 1000 so as to take into account the effect on other, potentially more sensitive, aquatic species to those used in toxicity studies (Verlicchi et al. 2012; Martin et al. 2012). PNEC for sludge (PNECsludge) was estimated from PNECwater using the following equation according to Martin et al. (2012):

$$\text{PNEC}_{\text{sludge}}=\text{PNEC}_{\text{water}}\times \text{K}_\text{d}$$

where Kd is the solid–water distribution coefficient of the corresponding pharmaceutical. Kd values of diclofenac (232 L Kg− 1 for secondary sludge) and ibuprofen (7.1 L Kg− 1 for secondary sludge) were obtained from Stasinakis et al. (2013) and Ternes et al. (2004), respectively. Maximum concentration was used as measured environmental concentration (MEC) for calculating RQ value to assess the worst case scenario. In cases where all the measured concentration values for a given matrix or sampling site were below the MLOQ, the value of MLOQ was used as MEC for the RQ calculation. RQ values were calculated as the ratio of MEC to the predicted no effect concentrations PNECsludge of the target NSAIDs in accordance to the European Commission Technical Guidance Document on Risk Assessment (European Commission 2003). The risk ratios were categorized according to Wee et al. (2019) as negligible risk (RQ < 0.01), low risk (0.01 ≤ RQ < 0.1), medium risk (0.1 ≤ RQ < 1), and high risk (RQ ≥ 1).

Table 1 Toxicity data of diclofenac and ibuprofen

Results and Discussion

The QuEChERS method is based on two sequential steps: a solid–liquid (buffered) partitioning with a salting-out effect followed by a clean-up using dispersive solid-phase extraction (d-SPE) (Nannou et al. 2019). For method development and optimization, 2 g dried and homogenized sludge sample was spiked with standard solution of diclofenac and ibuprofen at 10 µg g− 1 fortification level. The optimization of QuEChERS extraction was carried out by optimizing the extracting solvents composition and buffer salt. The influence of Na2EDTA on the recoveries of target compounds from sewage sludge was also investigated. Acetonitrile was chosen as organic based solvent. In some experiments, acetonitrile (organic solvent) was modified with methanol (20 %) while aqueous solvent was modified with 0.1 M Na2EDTA. The buffer salt compositions evaluated were: unbuffered salt consisting of 4 g MgSO4 + 1 g NaCl and acetate buffer salt consisting of 4 g MgSO4 + 1 g CH3COONa. Duplicate determinations were carried out for each set of experiments. Results of the optimization of extraction solvents and buffer salt composition are presented in Fig. 1.

Fig. 1
figure 1

Optimization of QuEChERS extraction solvents and buffer salt composition; error bar indicates standard error of the mean (95 % Confidence Level)

The extraction recoveries of both diclofenac and ibuprofen were < 10 % when only acetonitrile was used as organic solvent in combination with unbuffered salt. Modification of acetonitrile content with methanol (20 %), still in combination with unbuffered salt, yielded the extraction recoveries of 38 % and 35 % for diclofenac and ibuprofen, respectively. This implies that the addition of methanol to the organic solvent slightly improved the extraction recoveries of both compounds. Moreover, when acetate buffer salt was experimented using only acetonitrile as organic solvent the extraction recoveries of diclofenac and ibuprofen were 43 % and 37 %, respectively. There was a considerable improvement in the extraction recoveries of both compounds in comparison with when unbuffered salt was used (< 10 %). This shows that acetate buffer salt was more efficient than unbuffered salt. With the use of acetate buffer, the pH gets close to 4.8 facilitating the extraction of pH dependent compounds (Lehotay et al. 2010) like diclofenac and ibuprofen which are weakly acidic (Table S1, supplementary material). Modification of acetonitrile content with methanol (20 %), in combination with acetate buffer salt, 57 % extraction recovery was obtained for diclofenac while 54 % extraction recovery was obtained for ibuprofen. Again, modification of acetonitrile with methanol improved the extraction efficiency of both compounds. The use of the polar co-solvent methanol increased the polarity of the organic phase (Guo et al. 2016) thereby improving the solubility of diclofenac and ibuprofen in the organic phase. This resulted into improved extraction recoveries of the compounds. Hlengwa and Mahlambi (2020) recently demonstrated that a mixture of water, methanol and acetonitrile provided good extraction recoveries for these NSAIDs in soil using ultrasonic extraction. Also, an improvement in the extraction of antibiotics was observed when a mixture of acetonitrile and methanol was used rather than only acetonitrile (Ajibola et al. 2020a). Therefore, acetonitrile modified with methanol (20 %) was used for subsequent optimization experiments.

In order to further improve the extraction recoveries of both compounds, modification of the aqueous solvent was investigated by considering the influence of Na2EDTA. In this regard, some experiments were conducted using only water or 0.1 M Na2EDTA in water as the aqueous solvent. Acetonitrile modified with methanol (20 %) in combination with either acetate buffer salt or unbuffered salt was used. The results of the extraction recoveries, reflecting the influence of Na2EDTA, are also shown in Fig. 1. Again, acetate buffer salt was more efficient than unbuffered salt for the extraction of diclofenac and ibuprofen (Fig. 1). Moreover, modification of the aqueous solvent with Na2EDTA considerably improved the extraction of both compounds using either acetate buffer salt or unbuffered salt. For the unbuffered salt, diclofenac extraction recovery improved from 38–43 % while ibuprofen extraction recovery improved from 35–52 %. Results with the acetate buffer salt showed that diclofenac extraction recovery improved from 57–71 % while ibuprofen extraction recovery from 54–80 %. Overall, addition of Na2EDTA improved the extraction efficiency of both compounds from sewage sludge. Addition of Na2EDTA as chelating agent can facilitate the extraction of analytes by preventing their complexation with divalent cations such as Mg2+ and Ca2+ (Ajibola et al. 2020a; Peysson and Vulliet 2013). Diclofenac and ibuprofen have the capacity to form complexes with cations due to the carboxylate group (structures are shown in Table S1, Supplementary information) which can act as a ligand (Psomas 2020). This can lead to reduction in the recovery of the compounds. To prevent this, Na2EDTA acted as a chelating agent to bind the metal ions, resulting in the improvement of the extraction recoveries of the compounds. Peysson and coworker also observed a general improvement (of 50 %) in the recoveries of pharmaceuticals from sewage sludge when water was replaced by 0.1 M EDTA (Peysson and Vulliet 2013).

The recoveries (means) of the different extraction procedures were compared using the standard error of the means according to Nicholls 2016. All recoveries (means) of the different extraction procedures were statistically different. The efficiency of the clean-up procedure was estimated by comparing the extraction recoveries and overall recoveries for each compound. From Table 2 the d-SPE clean-up procedure was very efficient for diclofenac and moderately efficient for ibuprofen probably due to its incomplete desorption from the d-SPE sorbent or matrix interference. The method workflow is presented in Fig S1 (supplementary material).

It should be noted that all the experiments during the optimization stage were performed at a spiking concentration level of 10 µg g− 1. For method validation, a lower spiking concentration level of 1 µg g− 1 was included. Better extraction recoveries were obtained for both diclofenac and ibuprofen at a lower spiking concentration level of 1 µg g− 1 (Table 2). Finally, the optimized QuEChERS extraction solvents involved 10 mL of 0.1 M Na2EDTA (in water), 8 mL acetonitrile and 2 mL methanol. Acetate buffer salt (1 g CH3COONa and 4 g MgSO4) was chosen for liquid-liquid partitioning. Dispersive-solid phase extraction (d-SPE) sorbent (150 mg PSA + 450 mg MgSO4) was used for the clean-up of QuEChERS extracts.

The performance parameters of the analytical method are presented in Table 2. Extraction recoveries and overall recoveries of diclofenac and ibuprofen in sewage sludge were evaluated at two different fortification levels (1.0 µg g− 1 and 10 µg g− 1). Extraction recoveries of diclofenac at 1.0 µg g− 1 and 10 µg g− 1 fortification levels were 118 ± 6 % and 80 ± 4 %, respectively whereas the extraction recoveries for ibuprofen at 1.0 µg g− 1 and 10 µg g− 1 fortification levels were 81 ± 7 % and 70 ± 5 %, respectively. Overall recoveries of diclofenac at 1.0 µg g− 1 and 10 µg g− 1 fortifications were 98 % and 76 %, respectively while the overall recoveries of ibuprofen were 44 % and 53 %. The obtained lower overall recoveries of ibuprofen compared to its extraction recoveries could be a result of matrix interference or incomplete desorption from d-SPE sorbent. Hence, matrix-matched calibration was applied for the quantification of both NSAIDs. Better recovery values were achieved in this present work than the recoveries reported by Rossini et al. (2016) who obtained recoveries range of 37 % to 55 % for diclofenac and recoveries range of 4–49 % for ibuprofen. Saleh et al. (2011) reported similar recoveries to our study for diclofenac (90.3 %) and ibuprofen (47.8 %) using pressurized hot water extraction (PHWE).

Table 2 Analytical performance parameters for determination of diclofenac and ibuprofen in sewage sludge

The method MLOD for both diclofenac and ibuprofen was 0.13 µg g− 1 while MLOQ values were 0.43 µg g− 1 and 0.45 µg g− 1 for diclofenac and ibuprofen, respectively. MLOQs of 0.05 µg g− 1 and 3.0 µg g− 1 were reported for diclofenac and ibuprofen, respectively by Peysson and Vulliet (2013) using a mass spectrometer for detection. Despite the use of a less sensitive detector (ultraviolet detector) in this study, lower MLOQ value was achieved for ibuprofen than the MLOQ reported by Peysson and Vulliet (2013).This indicates the efficiency of the developed QuEChERS extraction coupled with the applied d-SPE clean-up. Comparable MLOQ values were reported for diclofenac and ibuprofen by Martin et al. 2010 using UAE + HPLC-FLD/DAD (ibuprofen – 0.355 µg g− 1; diclofenac − 0.10 µg g− 1) and Morales-Toledo et al. 2016 using MAE + UHPLC-FLD (ibuprofen – 0.288 µg g− 1). Intra-day repeatability (%RSD) values of diclofenac and ibuprofen were 4.5 % and 6.8 %, respectively while inter-day precision (reproducibility) for both compounds were less than 18 %. Correlation coefficients of 0.9997 and 0.9993 were obtained for diclofenac and ibuprofen respectively, indicating good linearity for both compounds.

The developed method was applied for the determination of diclofenac and ibuprofen in sewage sludge samples collected from three WWTPs in Nigeria. Table 3 shows the concentration profiles of target NSAIDs in sewage sludge samples. For the first sampling campaign, concentration of diclofenac in UCH primary sludge ranged from < MLOQ to 0.6 µg g− 1 and < MLOQ to 0.5 µg g− 1 for UCH secondary sludge). Diclofenac concentration in Ijaiye sludge ranged from < MLOQ to 0.6 µg g− 1. Diclofenac was detected below MLOQ in Alausa sludge. Moreover, for the first sampling the highest concentration of ibuprofen was measured in Ijaiye sludge (6.6 µg g− 1). Ibuprofen concentration in UCH primary sludge ranged from < MLOQ to 0.7 µg g− 1 and < MLOQ in UCH secondary sludge. 0.6 µg g− 1 of ibuprofen was quantified in Alausa sludge. For the second sampling, diclofenac in UCH primary sludge ranged from < MLOQ to 1.02 µg g− 1 and < MLOQ to 0.5 µg g− 1 for UCH secondary sludge.

Diclofenac concentration in Ijaiye sludge was < MLOQ. Ibuprofen concentration was below MLOQ in UCH primary sludge and ranged from < MLOQ – 3.7 µg g− 1 in UCH secondary sludge. Ijaiye sludge concentration for ibuprofen ranged from < MLOQ to 2.4 µg g− 1 while Alausa sludge had 0.6 µg g− 1 of ibuprofen. There was no remarkable difference in the concentrations of diclofenac and ibuprofen in sewage sludge collected during the first sampling and second sampling.

Table 3 Concentrations (µg g− 1) of diclofenac and ibuprofen residues in sewage sludge from three WWTPs in Nigeria

Overall, in this present study, the highest concentration of diclofenac (1.02 µg g− 1) was measured in UCH primary sludge while ibuprofen maximum concentration of 6.6 µg g− 1 was quantified in Ijaiye sludge. Sorption of compounds to sludge takes place through absorption and adsorption processes (Vieno and Sillanpää 2014; Ternes et al. 2004) and these two processes account for the sorption of a compound to sludge. Sorption to sludge can be estimated by Kd value. For an efficient sorption, Kd value should be over 300 L Kg− 1 (Vieno and Sillanpää 2014). According to Stasinakis et al. (2013), Kd values for diclofenac in primary and secondary sludge are 459 L Kg− 1 and 232 L Kg− 1, respectively. This implies that diclofenac has more tendencies to accumulate in primary sludge than in secondary sludge during wastewater treatment processes. This was evident in UCH sludge for which the highest concentration was measured in primary sludge. Lonappan et al. (2016) also determined higher concentration of diclofenac in primary sludge than in secondary sludge. In spite of the higher Kd (232 L Kg− 1) of diclofenac than that of ibuprofen (7.1 L Kg− 1), ibuprofen concentrations were higher than diclofenac concentrations in most sewage sludge samples.

With the lower Kd value of ibuprofen, sorption of ibuprofen to sewage sludge was expected to be lower than that of diclofenac. This occurrence of ibuprofen at higher concentrations than diclofenac in most sewage sludge samples could be as a result of much higher prescription and dispensing rate of ibuprofen at UCH and Ijaiye hospitals and higher consumption rate of ibuprofen by the residents around Alausa WWTP.

Comparable or lower concentrations of diclofenac and ibuprofen in sewage sludge were quantified in some studies in Europe and North America (Rossini et al. 2016; Peysson and Vulliet 2013; Gago-Ferrero et al. 2015; Lonappan et al. 2016; Guerra et al. 2014). In a study in Pakistan, concentrations of up to 6.046 µg g− 1 and 4.968 µg g− 1 were quantified in sludge for ibuprofen and diclofenac, respectively (Ashfaq et al. 2017). Studies on the occurrence of diclofenac and ibuprofen in sewage sludge from WWTPs in Africa are still limited. Hence, there are scarce data from Africa to compare with our results. Up to 1.110 µg g− 1 of diclofenac was measured in sewage sludge from Agbara WWTP (in Nigeria) which treats industrial wastewater (Olarinmoye et al. 2016). In comparison with this present work, Olarinmoye et al. (2016) obtained similar concentrations of diclofenac in sewage sludge from UCH and Alausa WWTPs (UCH sludge: 0.111 µg g− 1, Alausa sludge: 0.635 µg g− 1) but lower concentrations of ibuprofen were quantified in sewage sludge from the same WWTPs (UCH sludge: 0.06 µg g− 1, Alausa sludge: < 0.1 µg g− 1) .

Ecological risk assessment of pharmaceuticals in sewage sludge is important for evaluating their potential adverse impacts to the ecosystem. The common fates of sewage sludge in the studied Nigerian WWTPs are land application for agricultural purposes and disposal into dumpsites. Pharmaceuticals may enter surface water via runoff from soil or leach into groundwater from dumpsites. Therefore, the presence of diclofenac and ibuprofen in the sewage sludge samples represent a potential threat for the soil and aquatic ecosystems. Consequently, these compounds can enter the food chain through transfer from soil to plants (Martin et al. 2012). The RQ values of diclofenac and ibuprofen in secondary sewage sludge are presented in Fig. 2. Risk assessment of secondary sewage sludge indicated that diclofenac in all sewage sludge samples posed negligible risk to fish, daphnia and algae; and medium risk to bacteria. Ibuprofen posed high risk to all the four organisms (fish, daphnia, algae and bacteria) in all secondary sewage sludge samples, with the highest RQ values (13–189) observed for fish. Ibuprofen was found in previously published studies to pose high ecotoxicological risk in digested sludge (Martin et al. 2012; Verlicchi and Zambello 2015). Considering the high RQ values of ibuprofen in the sewage sludge samples and the aforementioned common fates of sewage sludge in the studied Nigerian WWTPs the soil and aquatic ecosystems especially fish, daphnia, algae and bacteria, are threatened with respect to the presence of ibuprofen residues.

In conclusion, a rapid, safe and low-cost method based on QuEChERS extraction and HPLC-UV has been developed and successfully applied for determination of diclofenac and ibuprofen in sewage sludge from three Nigerian WWTPs. The developed QuEChERS method is simple and affordable for routine monitoring of diclofenac and ibuprofen residues in sewage sludge. Diclofenac and ibuprofen were detected in all sewage sludge samples. Diclofenac and ibuprofen were quantified up to 1.02 µg g− 1 and 6.6 µg g− 1, respectively. Ibuprofen posed high risk to fish, daphnia, algae and bacteria in all secondary sewage sludge samples. The high RQ values of ibuprofen indicate serious threats to the soil and aquatic ecosystem especially fish, daphnia, algae and bacteria. The present study expands our knowledge on the applicability of QuEChERS extraction for pharmaceuticals determination in sewage sludge. The findings regarding the occurrence and ecological risk of target NSAIDs call for the adoption of adequate and efficient advanced treatment processes for the treatment of sewage sludge prior to disposal and use as manures for agricultural applications in Nigeria.

Fig. 2
figure 2

Risk quotient values of diclofenac a and ibuprofen b in secondary sewage sludge. NB: Secondary axis scale in (a) is for only bacteria