POST-ID:658 array(6) { [0]=> object(WP_Term)#15357 (11) { ["term_id"]=> int(310) ["name"]=> string(12) "Baked potato" ["slug"]=> string(12) "baked-potato" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(310) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(155) "Discover the joys of a simple baked potato with our delicious filling ideas. From creamy cheeses to vegan-friendly toppings, we have something for everyone" ["parent"]=> int(0) ["count"]=> int(32) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15367 (11) { ["term_id"]=> int(177) ["name"]=> string(18) "Cheap family meals" ["slug"]=> string(20) "cheap-family-suppers" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(177) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(47) "Wholesome, budget suppers for the whole family." ["parent"]=> int(0) ["count"]=> int(114) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15464 (11) { ["term_id"]=> int(22) ["name"]=> string(12) "Healthy kids" ["slug"]=> string(12) "healthy-kids" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(22) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(58) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15425 (11) { ["term_id"]=> int(211) ["name"]=> string(14) "Healthy winter" ["slug"]=> string(14) "healthy-winter" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(211) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(54) "Healthy and hearty winter warmers for colder nights..." ["parent"]=> int(0) ["count"]=> int(70) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15362 (11) { ["term_id"]=> int(57) ["name"]=> string(11) "Kids health" ["slug"]=> string(11) "kids-health" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(57) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(16) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15446 (11) { ["term_id"]=> int(85) ["name"]=> string(7) "Student" ["slug"]=> string(7) "student" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(85) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(50) "Cheap and cheerful recipes for eating on a budget." ["parent"]=> int(0) ["count"]=> int(38) ["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 ( 310, 177222115785 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 658 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16