POST-ID:3057 array(5) { [0]=> object(WP_Term)#15347 (11) { ["term_id"]=> int(98) ["name"]=> string(15) "Camping recipes" ["slug"]=> string(7) "camping" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(98) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(213) "Explore a range of camping recipes perfect for outdoor adventures. From easy foil-pack meals and hearty stews to quick snacks and campfire desserts, find delicious and convenient dishes for your next camping trip." ["parent"]=> int(0) ["count"]=> int(26) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15445 (11) { ["term_id"]=> int(174) ["name"]=> string(16) "Dairy-free lunch" ["slug"]=> string(16) "dairy-free-lunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(174) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(43) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15406 (11) { ["term_id"]=> int(10) ["name"]=> string(9) "Iron-rich" ["slug"]=> string(20) "iron-rich-vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(10) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(19) "Get a mineral boost" ["parent"]=> int(0) ["count"]=> int(15) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15342 (11) { ["term_id"]=> int(120) ["name"]=> string(17) "Modern vegetarian" ["slug"]=> string(17) "modern-vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(120) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Veggie recipes for the whole family" ["parent"]=> int(0) ["count"]=> int(151) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15431 (11) { ["term_id"]=> int(413) ["name"]=> string(10) "Vegetarian" ["slug"]=> string(10) "vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(413) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(43) "Meat-free recipes for entertaining and more" ["parent"]=> int(0) ["count"]=> int(555) ["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 ( 98, 17410120413 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 3057 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16