POST-ID:29473 array(12) { [0]=> object(WP_Term)#14519 (11) { ["term_id"]=> int(376) ["name"]=> string(9) "Cake sale" ["slug"]=> string(9) "cake-sale" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(376) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(56) "Tempting treats to get the charity donations rolling in." ["parent"]=> int(0) ["count"]=> int(52) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#14518 (11) { ["term_id"]=> int(378) ["name"]=> string(16) "Celebration cake" ["slug"]=> string(16) "celebration-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(378) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(34) "Show-stopping cakes for occasions." ["parent"]=> int(0) ["count"]=> int(63) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#14517 (11) { ["term_id"]=> int(96) ["name"]=> string(27) "Celebration cakes and bakes" ["slug"]=> string(17) "celebration-cakes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(96) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(160) "The festive season is still in full swing! If you’re just starting to think about your New Year’s Eve menu, add a show-stopping dessert to the list." ["parent"]=> int(0) ["count"]=> int(61) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#14516 (11) { ["term_id"]=> int(381) ["name"]=> string(14) "Chocolate cake" ["slug"]=> string(14) "chocolate-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(381) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(31) "Irresistibly chocolatey treats." ["parent"]=> int(0) ["count"]=> int(65) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#14515 (11) { ["term_id"]=> int(2) ["name"]=> string(12) "Classic cake" ["slug"]=> string(12) "classic-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(2) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(82) "Old favourites and traditional bakes- take your pick from our timeless collection." ["parent"]=> int(0) ["count"]=> int(75) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#14514 (11) { ["term_id"]=> int(366) ["name"]=> string(6) "Easter" ["slug"]=> string(6) "easter" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(366) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(49) "Roasts and special meals for Easter entertaining." ["parent"]=> int(0) ["count"]=> int(66) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#14506 (11) { ["term_id"]=> int(367) ["name"]=> string(13) "Easter baking" ["slug"]=> string(13) "easter-baking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(367) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(33) "Sugar, spice and all things nice." ["parent"]=> int(0) ["count"]=> int(67) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#14512 (11) { ["term_id"]=> int(294) ["name"]=> string(15) "Easter for kids" ["slug"]=> string(11) "easter-kids" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(294) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Fun Easter projects for the family." ["parent"]=> int(0) ["count"]=> int(34) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#14513 (11) { ["term_id"]=> int(241) ["name"]=> string(20) "Festive cake recipes" ["slug"]=> string(12) "festive-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(241) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(25) "Festive and fruity cakes." ["parent"]=> int(0) ["count"]=> int(59) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [9]=> object(WP_Term)#13693 (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)#13694 (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(65) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [11]=> object(WP_Term)#14522 (11) { ["term_id"]=> int(232) ["name"]=> string(14) "School holiday" ["slug"]=> string(14) "school-holiday" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(232) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(49) "Fun recipes to keep kids occupied over the break." ["parent"]=> int(0) ["count"]=> int(50) ["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 ( 376, 378963812366367294241176179232 ) OR rd.ingredients LIKE '%Baking%' OR rd.ingredients LIKE '% Chocolate cake%' OR rd.ingredients LIKE '% Easter%' OR rd.ingredients LIKE '% easter bakes%' OR rd.ingredients LIKE '% easter chocolate%' OR rd.ingredients LIKE '% Traybake%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 29473 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16