POST-ID:19957 array(5) { [0]=> object(WP_Term)#16684 (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(166) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16784 (11) { ["term_id"]=> int(168) ["name"]=> string(7) "7-a-day" ["slug"]=> string(5) "7-day" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(168) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(111) "Simple & delicious recipes with at least 3 portions of fruit & veg to get you to that lucky number 7..." ["parent"]=> int(0) ["count"]=> int(43) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16751 (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(41) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16679 (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(115) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16771 (11) { ["term_id"]=> int(46) ["name"]=> string(10) "Vegetables" ["slug"]=> string(10) "vegetables" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(46) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(124) ["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, 16831315446 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 19957 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16