POST-ID:7921 array(4) { [0]=> object(WP_Term)#21292 (11) { ["term_id"]=> int(356) ["name"]=> string(16) "Breakfast in bed" ["slug"]=> string(24) "breakfast-in-bed-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(356) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(95) "Start the day in decadent fashion with one of our extra-special sweet or savoury brunch dishes." ["parent"]=> int(0) ["count"]=> int(66) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#22616 (11) { ["term_id"]=> int(14128) ["name"]=> string(23) "Kids' breakfast recipes" ["slug"]=> string(22) "kids-breakfast-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14128) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(145) "Start the day right with these breakfast recipes for kids, from pancakes and muffins to oat bars and smoothies that even fussy eaters will enjoy." ["parent"]=> int(0) ["count"]=> int(10) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#21296 (11) { ["term_id"]=> int(14130) ["name"]=> string(21) "Kids' pancake recipes" ["slug"]=> string(20) "kids-pancake-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14130) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(114) "From fluffy to fruity, these easy pancake recipes are perfect for getting kids involved in a fun family breakfast." ["parent"]=> int(0) ["count"]=> int(12) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#21295 (11) { ["term_id"]=> int(232) ["name"]=> string(14) "School holiday" ["slug"]=> string(14) "school-holiday" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(232) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(49) "Fun recipes to keep kids occupied over the break." ["parent"]=> int(0) ["count"]=> int(50) ["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 ( 356, 1412814130232 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 7921 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16