POST-ID:1978 array(5) { [0]=> object(WP_Term)#16627 (11) { ["term_id"]=> int(411) ["name"]=> string(12) "Easy pudding" ["slug"]=> string(12) "easy-pudding" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(411) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(158) "Whip up one of our comforting desserts with minimum fuss for a dinner party or family meal. Choose from super simple sponge puddings, brownies, tarts and more" ["parent"]=> int(0) ["count"]=> int(61) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16727 (11) { ["term_id"]=> int(75) ["name"]=> string(9) "Eid feast" ["slug"]=> string(11) "eid-cooking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(75) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(84) "Traditional Arabic delicacies to enjoy cooking and serving up over the long weekend!" ["parent"]=> int(0) ["count"]=> int(127) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16694 (11) { ["term_id"]=> int(12532) ["name"]=> string(5) "Iftar" ["slug"]=> string(5) "iftar" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(12532) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(28) "A selection of Iftar recipes" ["parent"]=> int(0) ["count"]=> int(81) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16622 (11) { ["term_id"]=> int(12531) ["name"]=> string(7) "Ramadan" ["slug"]=> string(7) "ramadan" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(12531) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(160) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16714 (11) { ["term_id"]=> int(12534) ["name"]=> string(16) "Ramadan desserts" ["slug"]=> string(16) "ramadan-desserts" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(12534) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(38) "Break your fast with these specialties" ["parent"]=> int(0) ["count"]=> int(34) ["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 ( 411, 75125321253112534 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 1978 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16