POST-ID:19490 array(6) { [0]=> object(WP_Term)#16156 (11) { ["term_id"]=> int(371) ["name"]=> string(14) "Baking recipes" ["slug"]=> string(6) "baking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(371) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(138) "Discover a selection of our favourite bakes. Whether you're making bread, brownies, cookies, cakes or tarts, we've got the perfect recipes" ["parent"]=> int(0) ["count"]=> int(177) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16178 (11) { ["term_id"]=> int(234) ["name"]=> string(14) "Banana recipes" ["slug"]=> string(14) "banana-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(234) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(109) "This potassium-rich fruit can be used in sweet and savoury dishes - we have ideas for over-ripe bananas, too." ["parent"]=> int(0) ["count"]=> int(36) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16275 (11) { ["term_id"]=> int(58) ["name"]=> string(31) "Delicious desserts for hot days" ["slug"]=> string(11) "hot-weather" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(58) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(51) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16238 (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(211) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16173 (11) { ["term_id"]=> int(51) ["name"]=> string(14) "Summer dessert" ["slug"]=> string(14) "summer-dessert" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(51) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(24) "Recipes to beat the heat" ["parent"]=> int(0) ["count"]=> int(99) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16257 (11) { ["term_id"]=> int(14073) ["name"]=> string(28) "Thanksgiving dessert recipes" ["slug"]=> string(28) "thanksgiving-dessert-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14073) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(92) "Complete a Thanksgiving celebration menu with one of our American-inspired dessert recipes. " ["parent"]=> int(0) ["count"]=> int(10) ["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 ( 371, 234588955114073 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 19490 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16