POST-ID:28639 array(6) { [0]=> object(WP_Term)#11911 (11) { ["term_id"]=> int(91) ["name"]=> string(16) "Christmas baking" ["slug"]=> string(16) "christmas-baking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(91) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(152) "Crumbly mince pies, iced cakes and traditional festive breads like stollen and panettone – find all your favourite Christmas cakes and bakes here." ["parent"]=> int(0) ["count"]=> int(123) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#11910 (11) { ["term_id"]=> int(236) ["name"]=> string(18) "Christmas biscuits" ["slug"]=> string(18) "christmas-biscuits" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(236) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(94) "From cookies and gingerbread, to biscotti and shortbread, bake up a storm this festive season." ["parent"]=> int(0) ["count"]=> int(44) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#11933 (11) { ["term_id"]=> int(286) ["name"]=> string(37) "Christmas cracker and biscuit recipes" ["slug"]=> string(29) "christmas-cracker-and-biscuit" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(286) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(40) "Stack a hamper high with crunchy treats." ["parent"]=> int(0) ["count"]=> int(32) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#11932 (11) { ["term_id"]=> int(284) ["name"]=> string(23) "Christmas gifts recipes" ["slug"]=> string(15) "christmas-gifts" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(284) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(137) "Why go shopping when you can make Christmas presents at home? We have lots of ideas for gourmet gifts that your foodie friends will love." ["parent"]=> int(0) ["count"]=> int(94) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#11873 (11) { ["term_id"]=> int(267) ["name"]=> string(24) "Christmas sweets recipes" ["slug"]=> string(16) "christmas-sweets" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(267) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Ideal for stocking fillers or moreish treats." ["parent"]=> int(0) ["count"]=> int(61) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#12715 (11) { ["term_id"]=> int(264) ["name"]=> string(28) "Dairy-free Christmas recipes" ["slug"]=> string(20) "dairy-free-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(264) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(46) "Delicious Christmas ideas without the dairy..." ["parent"]=> int(0) ["count"]=> int(54) ["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 ( 91, 236286284267264 ) OR rd.ingredients LIKE '%Biscuits%' OR rd.ingredients LIKE '% edible Christmas gifts%' OR rd.ingredients LIKE '% Edible gifts%' OR rd.ingredients LIKE '% Florentines%' OR rd.ingredients LIKE '% Ginger%' OR rd.ingredients LIKE '% White chocolate%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 28639 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16