POST-ID:19508 array(5) { [0]=> object(WP_Term)#16722 (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)#16726 (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)#16693 (11) { ["term_id"]=> int(38) ["name"]=> string(19) "Gluten free Recipes" ["slug"]=> string(11) "gluten-free" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(38) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Delicious celiac-friendly recipes for every occasion" ["parent"]=> int(0) ["count"]=> int(68) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16622 (11) { ["term_id"]=> int(391) ["name"]=> string(16) "Gluten-free cake" ["slug"]=> string(16) "gluten-free-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(391) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(41) "No one will know they're wheat-free." ["parent"]=> int(0) ["count"]=> int(26) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16713 (11) { ["term_id"]=> int(70) ["name"]=> string(24) "Gluten-free cake recipes" ["slug"]=> string(24) "gluten-free-cake-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(70) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(12) ["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, 2343839170 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 19508 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16