POST-ID:22131 array(6) { [0]=> object(WP_Term)#16155 (11) { ["term_id"]=> int(429) ["name"]=> string(12) "Best of beef" ["slug"]=> string(12) "best-of-beef" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(429) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(211) "Whether it’s your go-to cut of meat for a British Sunday roast, or if you prefer your beef in a burger bun, the wide range of cuts available mean it really is one of the most versatile meats on the market." ["parent"]=> int(0) ["count"]=> int(31) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16177 (11) { ["term_id"]=> int(31) ["name"]=> string(9) "Big match" ["slug"]=> string(17) "big-match-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(31) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(123) "Finger lickin’ food to munch in front of the match and sharing platters that’ll keep you going strong during the Games." ["parent"]=> int(0) ["count"]=> int(43) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16274 (11) { ["term_id"]=> int(89) ["name"]=> string(18) "Boxing Day recipes" ["slug"]=> string(18) "boxing-day-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(89) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(138) "Whether it's a stunning ham centrepiece or a mash-up of Christmas leftovers, we've got a selection of Boxing Day recipes to impress family" ["parent"]=> int(0) ["count"]=> int(75) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16237 (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(117) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16172 (11) { ["term_id"]=> int(330) ["name"]=> string(5) "Pizza" ["slug"]=> string(5) "pizza" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(330) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Put down the takeaway menu and make your own." ["parent"]=> int(0) ["count"]=> int(47) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16256 (11) { ["term_id"]=> int(172) ["name"]=> string(15) "Sharing recipes" ["slug"]=> string(7) "sharing" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(172) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(53) "Platters and dig-in dinners for relaxed entertaining." ["parent"]=> int(0) ["count"]=> int(49) ["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 ( 429, 318933330172 ) OR rd.ingredients LIKE '%Dip%' OR rd.ingredients LIKE '% Family food%' OR rd.ingredients LIKE '% Fondue%' OR rd.ingredients LIKE '% New Year's eve%' OR rd.ingredients LIKE '% Pizza%' OR rd.ingredients LIKE '% Sharing food%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 22131 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16