POST-ID:7165 array(4) { [0]=> object(WP_Term)#17787 (11) { ["term_id"]=> int(313) ["name"]=> string(13) "Chicken salad" ["slug"]=> string(13) "chicken-salad" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(313) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(43) "Serve up a bright, light plate of goodness." ["parent"]=> int(0) ["count"]=> int(43) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#17751 (11) { ["term_id"]=> int(166) ["name"]=> string(26) "Lean & full of protein" ["slug"]=> string(20) "lean-full-of-protein" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(166) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(62) "These meals are great for incorporating protein into your diet" ["parent"]=> int(0) ["count"]=> int(23) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#17673 (11) { ["term_id"]=> int(397) ["name"]=> string(6) "Quinoa" ["slug"]=> string(6) "quinoa" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(397) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(57) "Delicious recipes to try with this high-protein superfood" ["parent"]=> int(0) ["count"]=> int(53) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#17683 (11) { ["term_id"]=> int(154) ["name"]=> string(13) "Summer salads" ["slug"]=> string(13) "summer-salads" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(154) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(99) "These light, refreshing and nutritious salads are perfect for tucking into during the hotter months" ["parent"]=> int(0) ["count"]=> int(119) ["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 ( 313, 166397154 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 7165 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16