POST-ID:6790 array(6) { [0]=> object(WP_Term)#16672 (11) { ["term_id"]=> int(37) ["name"]=> string(10) "Dairy free" ["slug"]=> string(10) "dairy-free" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(37) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Easy recipes for when you’re cutting out dairy" ["parent"]=> int(0) ["count"]=> int(55) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16686 (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)#16785 (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(123) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16752 (11) { ["term_id"]=> int(38) ["name"]=> string(19) "Gluten free Recipes" ["slug"]=> string(11) "gluten-free" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(38) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Delicious celiac-friendly recipes for every occasion" ["parent"]=> int(0) ["count"]=> int(68) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16681 (11) { ["term_id"]=> int(124) ["name"]=> string(18) "Gluten-free dinner" ["slug"]=> string(18) "gluten-free-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(124) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Suppertime menu options that skip grains and wheat." ["parent"]=> int(0) ["count"]=> int(30) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16771 (11) { ["term_id"]=> int(361) ["name"]=> string(8) "Romantic" ["slug"]=> string(8) "romantic" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(361) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(49) "Food of love - romantic recipes for you to share." ["parent"]=> int(0) ["count"]=> int(31) ["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 ( 37, 3584438124361 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 6790 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16