POST-ID:3841 array(4) { [0]=> object(WP_Term)#15437 (11) { ["term_id"]=> int(40) ["name"]=> string(6) "Low GI" ["slug"]=> string(6) "low-gi" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(40) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(47) "Reach for a healthy nibble to stave off hunger." ["parent"]=> int(0) ["count"]=> int(14) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15402 (11) { ["term_id"]=> int(78) ["name"]=> string(22) "Low-cal and delicious!" ["slug"]=> string(15) "200-400-clories" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(78) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(78) "Try these light, healthy dishes all counted to notch up to under 400 calories." ["parent"]=> int(0) ["count"]=> int(60) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15341 (11) { ["term_id"]=> int(221) ["name"]=> string(13) "Low-GI dinner" ["slug"]=> string(13) "low-gi-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(221) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(53) "Serve up a balanced meal that's easy on the tum." ["parent"]=> int(0) ["count"]=> int(24) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15444 (11) { ["term_id"]=> int(30) ["name"]=> string(17) "Quick and healthy" ["slug"]=> string(17) "quick-and-healthy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(30) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(98) ["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 ( 40, 7822130 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 3841 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16