POST-ID:20372 array(7) { [0]=> object(WP_Term)#15578 (11) { ["term_id"]=> int(117) ["name"]=> string(22) "Cook with coconut milk" ["slug"]=> string(22) "cook-with-coconut-milk" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(117) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(239) "When consumed in moderation, coconut milk can benefit your health and help fight infection, plus it’s a great substitute if you’re trying to cut back on dairy. We like the mellow creaminess it imparts when used in spicy dishes." ["parent"]=> int(0) ["count"]=> int(15) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15600 (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(74) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15479 (11) { ["term_id"]=> int(44) ["name"]=> string(4) "Fish" ["slug"]=> string(4) "fish" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(44) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(111) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15593 (11) { ["term_id"]=> int(200) ["name"]=> string(12) "Healthy fish" ["slug"]=> string(12) "healthy-fish" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(200) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(109) "From lighter pies to makeover fish & chips, nothing's off the menu with our healthier fish dishes..." ["parent"]=> int(0) ["count"]=> int(52) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15559 (11) { ["term_id"]=> int(300) ["name"]=> string(6) "Indian" ["slug"]=> string(6) "indian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(300) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Spicy Eastern recipes such as masala chicken." ["parent"]=> int(0) ["count"]=> int(137) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15497 (11) { ["term_id"]=> int(11592) ["name"]=> string(5) "prawn" ["slug"]=> string(5) "prawn" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(11592) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(44) ["count"]=> int(15) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#15584 (11) { ["term_id"]=> int(163) ["name"]=> string(19) "Scrumptious seafood" ["slug"]=> string(18) "let-s-have-lobster" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(163) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(71) "From crustaceans to cod, we've compiled some tasty recipes for you" ["parent"]=> int(0) ["count"]=> int(70) ["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 ( 117, 3584420030011592163 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 20372 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16