POST-ID:6789 array(8) { [0]=> object(WP_Term)#16842 (11) { ["term_id"]=> int(170) ["name"]=> string(12) "Clean eating" ["slug"]=> string(20) "clean-eating-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(170) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(95) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16843 (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" } [2]=> object(WP_Term)#16859 (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" } [3]=> object(WP_Term)#16744 (11) { ["term_id"]=> int(123) ["name"]=> string(17) "Gluten-free lunch" ["slug"]=> string(17) "gluten-free-lunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(123) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(54) "Specially selected midday treats for a no-gluten diet." ["parent"]=> int(0) ["count"]=> int(31) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16852 (11) { ["term_id"]=> int(431) ["name"]=> string(25) "Healthy Christmas recipes" ["slug"]=> string(17) "healthy-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(431) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(142) "Our best ever healthy festive dishes make a wholesome addition to your Christmas Day spread, including roast centrepieces, starters and sides." ["parent"]=> int(0) ["count"]=> int(69) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16823 (11) { ["term_id"]=> int(199) ["name"]=> string(20) "Healthy dinner party" ["slug"]=> string(20) "healthy-dinner-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(199) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Guilt-free options for the conscientious host" ["parent"]=> int(0) ["count"]=> int(120) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#16754 (11) { ["term_id"]=> int(207) ["name"]=> string(12) "Healthy soup" ["slug"]=> string(12) "healthy-soup" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(207) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(33) "Comfort food without the calories" ["parent"]=> int(0) ["count"]=> int(43) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#16838 (11) { ["term_id"]=> int(259) ["name"]=> string(23) "Vegan Christmas recipes" ["slug"]=> string(15) "vegan-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(259) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(158) "Serve up a festive, plant-based feast with our vegan Christmas starters, mains, sides and desserts. Choose from nut roasts, Christmas puddings, pies and more." ["parent"]=> int(0) ["count"]=> int(83) ["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 ( 170, 3738123431199207259 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 6789 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16