POST-ID:54364 array(4) { [0]=> object(WP_Term)#20182 (11) { ["term_id"]=> int(14128) ["name"]=> string(23) "Kids' breakfast recipes" ["slug"]=> string(22) "kids-breakfast-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14128) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(145) "Start the day right with these breakfast recipes for kids, from pancakes and muffins to oat bars and smoothies that even fussy eaters will enjoy." ["parent"]=> int(0) ["count"]=> int(10) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#20152 (11) { ["term_id"]=> int(14130) ["name"]=> string(21) "Kids' pancake recipes" ["slug"]=> string(20) "kids-pancake-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14130) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(114) "From fluffy to fruity, these easy pancake recipes are perfect for getting kids involved in a fun family breakfast." ["parent"]=> int(0) ["count"]=> int(12) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#20186 (11) { ["term_id"]=> int(28) ["name"]=> string(11) "Pancake Day" ["slug"]=> string(11) "pancake-day" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(28) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(58) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#20185 (11) { ["term_id"]=> int(114) ["name"]=> string(15) "Pancake madness" ["slug"]=> string(15) "pancake-madness" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(114) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(32) ["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 ( 14128, 1413028114 ) OR rd.ingredients LIKE '%banana pancakes%' OR rd.ingredients LIKE '% Bananas%' OR rd.ingredients LIKE '% best pancakes%' OR rd.ingredients LIKE '% Mini pancakes%' OR rd.ingredients LIKE '% Pancake day%' OR rd.ingredients LIKE '% Shrove Tuesday%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 54364 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16