POST-ID:32730 array(12) { [0]=> object(WP_Term)#20753 (11) { ["term_id"]=> int(406) ["name"]=> string(9) "Chocolate" ["slug"]=> string(9) "chocolate" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(406) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(296) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#22078 (11) { ["term_id"]=> int(357) ["name"]=> string(17) "Chocolate dessert" ["slug"]=> string(17) "chocolate-dessert" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(357) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(72) "Celebrate all things cocoa with our tart, cake, pudding and pie recipes." ["parent"]=> int(0) ["count"]=> int(92) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#22071 (11) { ["term_id"]=> int(153) ["name"]=> string(20) "Cooking for the kids" ["slug"]=> string(20) "cooking-for-the-kids" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(153) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(58) "Whip up these quick and simple recipes for the little ones" ["parent"]=> int(0) ["count"]=> int(53) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#20754 (11) { ["term_id"]=> int(409) ["name"]=> string(4) "Easy" ["slug"]=> string(4) "easy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(409) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(55) "Keep it easy with these simple but super-tasty recipes." ["parent"]=> int(0) ["count"]=> int(603) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#22079 (11) { ["term_id"]=> int(410) ["name"]=> string(19) "Easy but impressive" ["slug"]=> string(15) "easy-impressive" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(410) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(82) "Whip up dishes that look and taste gourmet, without spending hours in the kitchen." ["parent"]=> int(0) ["count"]=> int(329) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#22074 (11) { ["term_id"]=> int(32) ["name"]=> string(17) "Easy entertaining" ["slug"]=> string(17) "easy-entertaining" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(32) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(251) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#20760 (11) { ["term_id"]=> int(22) ["name"]=> string(24) "Healthy recipes for kids" ["slug"]=> string(12) "healthy-kids" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(22) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(58) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#20759 (11) { ["term_id"]=> int(231) ["name"]=> string(20) "Kids cookies recipes" ["slug"]=> string(20) "kids-cookies-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(231) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(175) "Explore fun and easy kids' cookie recipes that are perfect for little bakers. From colourful treats to simple classics, these recipes make baking with kids a joyful experience" ["parent"]=> int(0) ["count"]=> int(26) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#20756 (11) { ["term_id"]=> int(293) ["name"]=> string(12) "Kids cooking" ["slug"]=> string(12) "kids-cooking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(293) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(55) "Get those budding Jamies and Nigellas into the kitchen." ["parent"]=> int(0) ["count"]=> int(74) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [9]=> object(WP_Term)#20727 (11) { ["term_id"]=> int(176) ["name"]=> string(11) "Kids' cakes" ["slug"]=> string(9) "kids-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(176) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(44) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [10]=> object(WP_Term)#20635 (11) { ["term_id"]=> int(179) ["name"]=> string(11) "Kids' party" ["slug"]=> string(10) "kids-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(179) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(66) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [11]=> object(WP_Term)#20751 (11) { ["term_id"]=> int(178) ["name"]=> string(6) "Snacks" ["slug"]=> string(6) "snacks" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(178) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(88) ["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 ( 406, 3571534094103222231293176179178 ) OR rd.ingredients LIKE '%Chocolate%' OR rd.ingredients LIKE '% Cooking with children%' OR rd.ingredients LIKE '% Cooking with kids%' OR rd.ingredients LIKE '% Flapjacks%' OR rd.ingredients LIKE '% Pears%' OR rd.ingredients LIKE '% Porridge oats%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 32730 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16