POST-ID:28648 array(7) { [0]=> object(WP_Term)#15437 (11) { ["term_id"]=> int(91) ["name"]=> string(16) "Christmas baking" ["slug"]=> string(16) "christmas-baking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(91) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(152) "Crumbly mince pies, iced cakes and traditional festive breads like stollen and panettone – find all your favourite Christmas cakes and bakes here." ["parent"]=> int(0) ["count"]=> int(132) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15369 (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" } [2]=> object(WP_Term)#15376 (11) { ["term_id"]=> int(92) ["name"]=> string(16) "Christmas dinner" ["slug"]=> string(16) "christmas-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(92) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(90) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15451 (11) { ["term_id"]=> int(281) ["name"]=> string(21) "Christmas ham recipes" ["slug"]=> string(13) "christmas-ham" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(281) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(99) "Feed a crowd with a festive gammon joint. We have ideas for marinades, glazes and ways to serve it." ["parent"]=> int(0) ["count"]=> int(23) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15412 (11) { ["term_id"]=> int(895) ["name"]=> string(12) "Dinner party" ["slug"]=> string(12) "dinner-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(895) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(206) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15190 (11) { ["term_id"]=> int(33) ["name"]=> string(5) "Party" ["slug"]=> string(10) "party-food" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(33) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(114) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#15431 (11) { ["term_id"]=> int(144) ["name"]=> string(26) "Sharing-style dinner party" ["slug"]=> string(26) "sharing-style-dinner-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(144) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(105) "Spend less time at the stove-top and more time entertaining, with these easy-to-make dinner party dishes." ["parent"]=> int(0) ["count"]=> int(137) ["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 ( 91, 2909228189533144 ) OR rd.ingredients LIKE '%Chilli%' OR rd.ingredients LIKE '% Christmas ham%' OR rd.ingredients LIKE '% Fennel%' OR rd.ingredients LIKE '% Glazed ham%' OR rd.ingredients LIKE '% Pork%' OR rd.ingredients LIKE '% Roast ham%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 28648 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16