POST-ID:659 array(9) { [0]=> object(WP_Term)#20881 (11) { ["term_id"]=> int(63) ["name"]=> string(23) "All-time top 20 recipes" ["slug"]=> string(23) "all-time-top-20-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(63) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(24) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#19642 (11) { ["term_id"]=> int(14113) ["name"]=> string(19) "Carrot soup recipes" ["slug"]=> string(19) "carrot-soup-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14113) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(84) "Use up fresh veg in our easy carrot soup recipes for filling and nutritious lunches." ["parent"]=> int(0) ["count"]=> int(24) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#20878 (11) { ["term_id"]=> int(264) ["name"]=> string(28) "Dairy-free Christmas recipes" ["slug"]=> string(20) "dairy-free-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(264) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(46) "Delicious Christmas ideas without the dairy..." ["parent"]=> int(0) ["count"]=> int(54) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#19650 (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" } [4]=> object(WP_Term)#19651 (11) { ["term_id"]=> int(347) ["name"]=> string(9) "Freezable" ["slug"]=> string(9) "freezable" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(347) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(40) "Get ahead with freezer-friendly recipes." ["parent"]=> int(0) ["count"]=> int(57) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#19647 (11) { ["term_id"]=> int(14090) ["name"]=> string(31) "Healthy recipes for weight loss" ["slug"]=> string(31) "healthy-recipes-for-weight-loss" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14090) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(205) "Eating well while losing weight is easier than you think. Discover our collection of nutritious, low-calorie meals, including lighter lunch ideas and healthy yet filling dinners—all 500 calories or less." ["parent"]=> int(0) ["count"]=> int(38) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#19615 (11) { ["term_id"]=> int(135) ["name"]=> string(18) "Make-ahead lunches" ["slug"]=> string(18) "make-ahead-lunches" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(135) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(26) "Prep-friendly midday meals" ["parent"]=> int(0) ["count"]=> int(23) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#19653 (11) { ["term_id"]=> int(66) ["name"]=> string(11) "Slow cooker" ["slug"]=> string(11) "slow-cooker" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(66) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(99) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#19639 (11) { ["term_id"]=> int(335) ["name"]=> string(4) "Soup" ["slug"]=> string(4) "soup" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(335) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(39) "Be bowled over by our nourishing soups." ["parent"]=> int(0) ["count"]=> int(122) ["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 ( 63, 141132641743471409013566335 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 659 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16