POST-ID:22115 array(6) { [0]=> object(WP_Term)#15872 (11) { ["term_id"]=> int(140) ["name"]=> string(18) "Brand-new brunches" ["slug"]=> string(18) "brand-new-brunches" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(140) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(153) "Looking for a new reason to get out of bed in the morning? Our latest recipes will breathe new life into the classic boiled, scrambled or poached yolk…" ["parent"]=> int(0) ["count"]=> int(41) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15894 (11) { ["term_id"]=> int(112) ["name"]=> string(12) "Budget meals" ["slug"]=> string(12) "budget-meals" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(112) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Thrifty recipes to help you keep cooking costs down" ["parent"]=> int(0) ["count"]=> int(60) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15991 (11) { ["term_id"]=> int(143) ["name"]=> string(14) "Hearty lunches" ["slug"]=> string(21) "healthy-lunch-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(143) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Keep your healthy eating regime on the right track." ["parent"]=> int(0) ["count"]=> int(88) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15952 (11) { ["term_id"]=> int(360) ["name"]=> string(12) "Meal for two" ["slug"]=> string(12) "meal-for-two" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(360) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(56) "Serve up an intimate feast with a decadent meal for two." ["parent"]=> int(0) ["count"]=> int(134) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15889 (11) { ["term_id"]=> int(30) ["name"]=> string(17) "Quick and healthy" ["slug"]=> string(17) "quick-and-healthy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(30) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(98) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15976 (11) { ["term_id"]=> int(24) ["name"]=> string(14) "Speedy suppers" ["slug"]=> string(14) "speedy-suppers" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(24) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(34) "Easy suppers for the week" ["parent"]=> int(0) ["count"]=> int(106) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } }
SELECT p.ID, p.post_title, rd.recipe_data_ref_id, rd.photo_file_name, rd.photo_src, rd.skill_level FROM bbc20may18_posts p LEFT JOIN bbc20may18_term_relationships tr ON (p.ID = tr.object_id) LEFT JOIN bbc20may18_recipes_data rd ON (p.ID = rd.recipe_post_id) WHERE (tr.term_taxonomy_id IN ( 140, 1121433603024 ) OR rd.ingredients LIKE '%Baked beans%' OR rd.ingredients LIKE '% Cannellini beans%' OR rd.ingredients LIKE '% Eggs%' OR rd.ingredients LIKE '% Fibre%' OR rd.ingredients LIKE '% Healthy%' OR rd.ingredients LIKE '% Iron%' OR rd.ingredients LIKE '% Midweek meal%' OR rd.ingredients LIKE '% Toast%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 22115 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16