POST-ID:20874 array(7) { [0]=> object(WP_Term)#17096 (11) { ["term_id"]=> int(169) ["name"]=> string(16) "200-400 calories" ["slug"]=> string(16) "200-400-calories" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(169) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(147) "Low in calories yet super-satisfying – these lighter recipes make the most of delicious ingredients. Discover salads, stir-fries, stews and more." ["parent"]=> int(0) ["count"]=> int(307) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16992 (11) { ["term_id"]=> int(374) ["name"]=> string(5) "Bread" ["slug"]=> string(13) "bread-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(374) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(165) "Fill the house with the aroma of freshly baked bread. From an easy white loaf to sourdough, focaccia and brioche, we have a range of sweet and savoury bread recipes." ["parent"]=> int(0) ["count"]=> int(75) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#17931 (11) { ["term_id"]=> int(237) ["name"]=> string(16) "Christmas brunch" ["slug"]=> string(16) "christmas-brunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(237) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(162) "Discover Christmas breakfast and brunch ideas to start your day in style. Celebrate Christmas morning with festive breads, pancakes, eggs, smoked salmon and more." ["parent"]=> int(0) ["count"]=> int(100) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#17114 (11) { ["term_id"]=> int(238) ["name"]=> string(16) "Christmas buffet" ["slug"]=> string(16) "christmas-buffet" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(238) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(152) "Entertaining a crowd this Christmas? We have all the buffet dishes you need for a festive party, including canapés, dips and easy sharing plates." ["parent"]=> int(0) ["count"]=> int(93) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#17076 (11) { ["term_id"]=> int(282) ["name"]=> string(23) "Christmas gravy recipes" ["slug"]=> string(15) "christmas-gravy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(282) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(17) "Fruity favourites" ["parent"]=> int(0) ["count"]=> int(15) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#17009 (11) { ["term_id"]=> int(273) ["name"]=> string(24) "Christmas sauces recipes" ["slug"]=> string(23) "christmas-sauce-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(273) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(44) "Must-have accompaniments for festive feasts." ["parent"]=> int(0) ["count"]=> int(39) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#17100 (11) { ["term_id"]=> int(240) ["name"]=> string(22) "Easy Christmas recipes" ["slug"]=> string(14) "easy-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(240) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(169) "Take the stress out of Christmas prep with these simple yet scrumptious recipes. We've got all the essentials covered, from easy roast turkey to no-fuss mince pies." ["parent"]=> int(0) ["count"]=> int(131) ["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 ( 169, 374237238282273240 ) OR rd.ingredients LIKE '%Bread sauce%' OR rd.ingredients LIKE '% Christmas%' OR rd.ingredients LIKE '% Christmas sauces%' OR rd.ingredients LIKE '% Sauces%' OR rd.ingredients LIKE '% vegan bread sauce%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 20874 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16