POST-ID:21124 array(5) { [0]=> object(WP_Term)#15440 (11) { ["term_id"]=> int(290) ["name"]=> string(29) "Christmas centrepiece recipes" ["slug"]=> string(21) "christmas-centrepiece" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(290) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(159) "Discover showstopping turkey alternatives for your Christmas dinner. We have delicious recipes for pork, beef, goose and salmon, plus plenty of veggie options." ["parent"]=> int(0) ["count"]=> int(72) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15444 (11) { ["term_id"]=> int(340) ["name"]=> string(4) "Tart" ["slug"]=> string(4) "tart" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(340) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(59) "A crisp golden base is the foundation for many a good meal." ["parent"]=> int(0) ["count"]=> int(49) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15405 (11) { ["term_id"]=> int(413) ["name"]=> string(10) "Vegetarian" ["slug"]=> string(10) "vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(413) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(43) "Meat-free recipes for entertaining and more" ["parent"]=> int(0) ["count"]=> int(555) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15342 (11) { ["term_id"]=> int(260) ["name"]=> string(28) "Vegetarian Christmas recipes" ["slug"]=> string(20) "vegetarian-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(260) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(95) "Enticing meat-free recipes for the festive season, including main courses, starters and snacks." ["parent"]=> int(0) ["count"]=> int(93) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15430 (11) { ["term_id"]=> int(73) ["name"]=> string(17) "We love beetroot!" ["slug"]=> string(20) "why-we-love-beetroot" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(73) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(125) "Hardy beetroot is a reliable and delicious star of many a dish. Try our favourite recipes and discover this bright beauty..." ["parent"]=> int(0) ["count"]=> int(9) ["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 ( 290, 34041326073 ) OR rd.ingredients LIKE '%Alternative christmas dinner%' OR rd.ingredients LIKE '% Beetroot%' OR rd.ingredients LIKE '% Tart%' OR rd.ingredients LIKE '% Tartine%' OR rd.ingredients LIKE '% vegetarian Christmas dinner%' OR rd.ingredients LIKE '% Wensleydale cheese%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 21124 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16