POST-ID:1144 array(5) { [0]=> object(WP_Term)#17707 (11) { ["term_id"]=> int(7) ["name"]=> string(13) "Healthy lunch" ["slug"]=> string(13) "healthy-lunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(7) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Keep your healthy eating regime on the right track." ["parent"]=> int(0) ["count"]=> int(159) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#17806 (11) { ["term_id"]=> int(143) ["name"]=> string(14) "Hearty lunches" ["slug"]=> string(21) "healthy-lunch-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(143) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Keep your healthy eating regime on the right track." ["parent"]=> int(0) ["count"]=> int(88) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#17774 (11) { ["term_id"]=> int(333) ["name"]=> string(8) "Sandwich" ["slug"]=> string(8) "sandwich" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(333) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(155) "Try new fillings and toppings for your sandwiches, wraps and buns. Our next level sarnies include classic club sandwiches, baguettes and picnic favourites." ["parent"]=> int(0) ["count"]=> int(46) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#17696 (11) { ["term_id"]=> int(232) ["name"]=> string(14) "School holiday" ["slug"]=> string(14) "school-holiday" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(232) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(49) "Fun recipes to keep kids occupied over the break." ["parent"]=> int(0) ["count"]=> int(50) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#17797 (11) { ["term_id"]=> int(230) ["name"]=> string(12) "School lunch" ["slug"]=> string(12) "school-lunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(230) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(105) "Pack the little ones off with healthy bites and a few special treats to keep them alert and full all day." ["parent"]=> int(0) ["count"]=> int(50) ["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 ( 7, 143333232230 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 1144 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16