POST-ID:3936 array(4) { [0]=> object(WP_Term)#20536 (11) { ["term_id"]=> int(203) ["name"]=> string(13) "Healthy pasta" ["slug"]=> string(13) "healthy-pasta" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(203) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(27) "Light pasta dishes to enjoy" ["parent"]=> int(0) ["count"]=> int(55) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#20506 (11) { ["term_id"]=> int(326) ["name"]=> string(5) "Pasta" ["slug"]=> string(5) "pasta" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(326) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(47) "Delicious pasta dishes from spaghetti to soups." ["parent"]=> int(0) ["count"]=> int(134) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#20540 (11) { ["term_id"]=> int(163) ["name"]=> string(19) "Scrumptious seafood" ["slug"]=> string(18) "let-s-have-lobster" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(163) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(71) "From crustaceans to cod, we've compiled some tasty recipes for you" ["parent"]=> int(0) ["count"]=> int(94) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#20539 (11) { ["term_id"]=> int(14135) ["name"]=> string(20) "Shrimp pasta recipes" ["slug"]=> string(20) "shrimp-pasta-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14135) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(144) "Celebrate shellfish with our shrimp pasta recipes. Try the popular lemon and chilli prawn linguine or stir up a spicy Spanish seafood spaghetti." ["parent"]=> int(0) ["count"]=> int(18) ["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 ( 203, 32616314135 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 3936 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16