POST-ID:4889 array(7) { [0]=> object(WP_Term)#15434 (11) { ["term_id"]=> int(133) ["name"]=> string(11) "A cut above" ["slug"]=> string(11) "a-cut-above" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(133) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(145) "Take some care and attention when cooking with meat- whether slow-roasting a joint or flash frying a steak. Check out our favourite meat recipes." ["parent"]=> int(0) ["count"]=> int(78) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15341 (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(30) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16217 (11) { ["term_id"]=> int(295) ["name"]=> string(7) "British" ["slug"]=> string(15) "british-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(295) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(147) "Dig into the best of British cuisine by enjoying classics including roasts, stews and fish and chips – or dabble in delicious desserts" ["parent"]=> int(0) ["count"]=> int(42) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15448 (11) { ["term_id"]=> int(290) ["name"]=> string(29) "Christmas centrepiece recipes" ["slug"]=> string(21) "christmas-centrepiece" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(290) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(159) "Discover showstopping turkey alternatives for your Christmas dinner. We have delicious recipes for pork, beef, goose and salmon, plus plenty of veggie options." ["parent"]=> int(0) ["count"]=> int(72) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15409 (11) { ["term_id"]=> int(243) ["name"]=> string(27) "Festive main course recipes" ["slug"]=> string(19) "festive-main-course" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(243) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(54) "Dare to be different with our favourite festive mains." ["parent"]=> int(0) ["count"]=> int(40) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15346 (11) { ["term_id"]=> int(100) ["name"]=> string(6) "Roasts" ["slug"]=> string(6) "roasts" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(100) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(57) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#15428 (11) { ["term_id"]=> int(54) ["name"]=> string(13) "Winter Roasts" ["slug"]=> string(13) "winter-roasts" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(54) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(32) ["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 ( 133, 42929529024310054 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 4889 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16