| 1 |
0.67 ms |
SELECT t0.id AS id_1, t0.ingredient_name AS ingredient_name_2, t0.slug AS slug_3, t0.ingredient_image AS ingredient_image_4, t0.ingredient_second_name AS ingredient_second_name_5, t0.is_goodie AS is_goodie_6, t0.all_functions AS all_functions_7, t0.ingr_irritancy AS ingr_irritancy_8, t0.ingr_comedogencity AS ingr_comedogencity_9, t0.ingr_description AS ingr_description_10, t0.ingr_cas_1 AS ingr_cas_1_11, t0.ingr_ec_number_1 AS ingr_ec_number_1_12, t0.ingr_ec_number_2 AS ingr_ec_number_2_13, t0.ingr_details AS ingr_details_14, t0.UPAC_Name AS UPAC_Name_15, t0.Ph_Eur_Name AS Ph_Eur_Name_16, t0.Cosmetic_Restrictions AS Cosmetic_Restrictions_17, t0.Details AS Details_18, t0.Geeky_Details AS Geeky_Details_19 FROM ingredients t0 WHERE t0.slug = ? LIMIT 1
Parameters: [
"silybum-marianum-extract"
]
SELECT t0.id AS id_1, t0.ingredient_name AS ingredient_name_2, t0.slug AS slug_3, t0.ingredient_image AS ingredient_image_4, t0.ingredient_second_name AS ingredient_second_name_5, t0.is_goodie AS is_goodie_6, t0.all_functions AS all_functions_7, t0.ingr_irritancy AS ingr_irritancy_8, t0.ingr_comedogencity AS ingr_comedogencity_9, t0.ingr_description AS ingr_description_10, t0.ingr_cas_1 AS ingr_cas_1_11, t0.ingr_ec_number_1 AS ingr_ec_number_1_12, t0.ingr_ec_number_2 AS ingr_ec_number_2_13, t0.ingr_details AS ingr_details_14, t0.UPAC_Name AS UPAC_Name_15, t0.Ph_Eur_Name AS Ph_Eur_Name_16, t0.Cosmetic_Restrictions AS Cosmetic_Restrictions_17, t0.Details AS Details_18, t0.Geeky_Details AS Geeky_Details_19 FROM ingredients t0 WHERE t0.slug = 'silybum-marianum-extract' LIMIT 1;
|
| 4 |
141.40 ms |
SELECT p.id, p.product_name, p.slug, b.brand_name, b.slug as brand_slug
FROM ingredient_list il
JOIN products p ON p.id = il.product_id
LEFT JOIN brands b ON b.id = p.brand_id
WHERE il.ingredient_id = :id
LIMIT :limit
Parameters: [
"id" => 385
"limit" => 12
]
SELECT p.id, p.product_name, p.slug, b.brand_name, b.slug as brand_slug
FROM ingredient_list il
JOIN products p ON p.id = il.product_id
LEFT JOIN brands b ON b.id = p.brand_id
WHERE il.ingredient_id = 385
LIMIT 12;
|