POST-ID:18896 array(5) { [0]=> object(WP_Term)#20541 (11) { ["term_id"]=> int(158) ["name"]=> string(15) "20-minute meals" ["slug"]=> string(15) "20-minute-meals" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(158) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(90) "Super-quick and easy to make, these meals are great for preparing after a long day at work" ["parent"]=> int(0) ["count"]=> int(187) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#20537 (11) { ["term_id"]=> int(169) ["name"]=> string(16) "200-400 calories" ["slug"]=> string(16) "200-400-calories" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(169) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(147) "Low in calories yet super-satisfying – these lighter recipes make the most of delicious ingredients. Discover salads, stir-fries, stews and more." ["parent"]=> int(0) ["count"]=> int(318) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#20507 (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" } [3]=> object(WP_Term)#20242 (11) { ["term_id"]=> int(14143) ["name"]=> string(12) "Orzo recipes" ["slug"]=> string(12) "orzo-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14143) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(131) "Discover our best orzo recipes. This small rice-shaped pasta is versatile and works well in stews, salads, one-pot dishes and more." ["parent"]=> int(0) ["count"]=> int(18) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#20533 (11) { ["term_id"]=> int(24) ["name"]=> string(14) "Speedy suppers" ["slug"]=> string(14) "speedy-suppers" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(24) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(34) "Easy suppers for the week" ["parent"]=> int(0) ["count"]=> int(106) ["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 ( 158, 169140901414324 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 18896 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16