POST-ID:9190 array(6) { [0]=> object(WP_Term)#16732 (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)#16754 (11) { ["term_id"]=> int(76) ["name"]=> string(15) "Alfresco dining" ["slug"]=> string(15) "alfresco-dining" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(76) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(142) "Celebrate the sunshine and treat yourself to an al fresco feast with picnic staples like pies and quiche, barbecue mains or sharing mocktails." ["parent"]=> int(0) ["count"]=> int(31) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16853 (11) { ["term_id"]=> int(355) ["name"]=> string(11) "Aphrodisiac" ["slug"]=> string(11) "aphrodisiac" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(355) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(97) "From oysters to avocado, chocolate and figs, could these aphrodisiac recipes get you in the mood?" ["parent"]=> int(0) ["count"]=> int(15) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16820 (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(221) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16749 (11) { ["term_id"]=> int(358) ["name"]=> string(13) "Fabulous fish" ["slug"]=> string(13) "fabulous-fish" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(358) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(65) "Tantalise your tastebuds with spicy seafood and flavoursome fish." ["parent"]=> int(0) ["count"]=> int(75) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16839 (11) { ["term_id"]=> int(27) ["name"]=> string(15) "Valentine's Day" ["slug"]=> string(14) "valentines-day" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(27) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Food of love - romantic recipes for the special day" ["parent"]=> int(0) ["count"]=> int(105) ["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, 7635589535827 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 9190 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16