POST-ID:820 array(4) { [0]=> object(WP_Term)#16269 (11) { ["term_id"]=> int(35) ["name"]=> string(21) "Afternoon tea recipes" ["slug"]=> string(21) "afternoon-tea-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(35) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(148) "Throw your own afternoon tea party with our selection of teatime treats, from delicate scones, cakes and patisserie to savoury pies and scotch eggs." ["parent"]=> int(0) ["count"]=> int(108) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16232 (11) { ["term_id"]=> int(345) ["name"]=> string(12) "Comfort food" ["slug"]=> string(12) "comfort-food" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(345) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(34) "Warming recipes for winter nights." ["parent"]=> int(0) ["count"]=> int(87) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16166 (11) { ["term_id"]=> int(401) ["name"]=> string(5) "Scone" ["slug"]=> string(5) "scone" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(401) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(67) "Best served warm and buttered- try out new sweet and savoury ideas." ["parent"]=> int(0) ["count"]=> int(29) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16157 (11) { ["term_id"]=> int(3) ["name"]=> string(6) "Scones" ["slug"]=> string(6) "scones" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(3) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(74) "Scones Best served warm and buttered- try out new sweet and savoury ideas." ["parent"]=> int(0) ["count"]=> int(20) ["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 ( 35, 3454013 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 820 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16