POST-ID:5871 array(9) { [0]=> object(WP_Term)#15432 (11) { ["term_id"]=> int(276) ["name"]=> string(26) "Christmas recovery recipes" ["slug"]=> string(18) "christmas-recovery" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(276) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(47) "Healthy pick-me-ups to beat the festive excess." ["parent"]=> int(0) ["count"]=> int(44) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15434 (11) { ["term_id"]=> int(137) ["name"]=> string(21) "Clever ways with Kale" ["slug"]=> string(21) "clever-ways-with-kale" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(137) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(105) "This super-green leaf is packed with goodness. Serve it on the side or worked into a savoury main course." ["parent"]=> int(0) ["count"]=> int(11) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15438 (11) { ["term_id"]=> int(436) ["name"]=> string(35) "Healthy Christmas leftovers recipes" ["slug"]=> string(27) "healthy-christmas-leftovers" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(436) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(60) "Nutritious and delicious ways to use up your festive fare..." ["parent"]=> int(0) ["count"]=> int(36) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15345 (11) { ["term_id"]=> int(211) ["name"]=> string(14) "Healthy winter" ["slug"]=> string(14) "healthy-winter" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(211) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(54) "Healthy and hearty winter warmers for colder nights..." ["parent"]=> int(0) ["count"]=> int(70) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16219 (11) { ["term_id"]=> int(342) ["name"]=> string(4) "kale" ["slug"]=> string(4) "kale" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(342) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(38) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15452 (11) { ["term_id"]=> int(251) ["name"]=> string(29) "Low-calorie Christmas recipes" ["slug"]=> string(21) "low-calorie-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(251) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(33) "Low-calorie festive favourites..." ["parent"]=> int(0) ["count"]=> int(57) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#15413 (11) { ["term_id"]=> int(252) ["name"]=> string(25) "Low-fat Christmas recipes" ["slug"]=> string(17) "low-fat-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(252) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(60) "Tempting ways to take the guilt out of the festive feasting." ["parent"]=> int(0) ["count"]=> int(32) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#15350 (11) { ["term_id"]=> int(323) ["name"]=> string(6) "Noodle" ["slug"]=> string(6) "noodle" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(323) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(60) "Recipes for oodles of noodles, including soba, rice and egg." ["parent"]=> int(0) ["count"]=> int(45) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#15433 (11) { ["term_id"]=> int(336) ["name"]=> string(8) "Stir-fry" ["slug"]=> string(8) "stir-fry" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(336) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(85) "Use our speedy one-pan recipes to sizzle up an Asian-style spice pot in mere minutes." ["parent"]=> int(0) ["count"]=> int(35) ["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 ( 276, 137436211342251252323336 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 5871 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16