POST-ID:21149 array(11) { [0]=> object(WP_Term)#13005 (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)#13004 (11) { ["term_id"]=> int(291) ["name"]=> string(22) "Christmas Cake recipes" ["slug"]=> string(14) "christmas-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(291) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(162) "Celebrate Christmas with a rich, moist fruitcake, or perhaps a modern sponge-based creation. We've got all the recipes you need and tips for decorating, too." ["parent"]=> int(0) ["count"]=> int(49) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#12218 (11) { ["term_id"]=> int(37) ["name"]=> string(10) "Dairy free" ["slug"]=> string(10) "dairy-free" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(37) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Easy recipes for when you’re cutting out dairy" ["parent"]=> int(0) ["count"]=> int(53) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#12217 (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" } [4]=> object(WP_Term)#12221 (11) { ["term_id"]=> int(41) ["name"]=> string(8) "Egg-free" ["slug"]=> string(8) "egg-free" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(41) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(32) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#12212 (11) { ["term_id"]=> int(38) ["name"]=> string(19) "Gluten free Recipes" ["slug"]=> string(11) "gluten-free" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(38) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Delicious celiac-friendly recipes for every occasion" ["parent"]=> int(0) ["count"]=> int(58) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#12216 (11) { ["term_id"]=> int(391) ["name"]=> string(16) "Gluten-free cake" ["slug"]=> string(16) "gluten-free-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(391) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(41) "No one will know they're wheat-free." ["parent"]=> int(0) ["count"]=> int(23) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#12211 (11) { ["term_id"]=> int(70) ["name"]=> string(24) "Gluten-free cake recipes" ["slug"]=> string(24) "gluten-free-cake-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(70) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(11) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#12210 (11) { ["term_id"]=> int(245) ["name"]=> string(29) "Gluten-free Christmas recipes" ["slug"]=> string(21) "gluten-free-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(245) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(64) "There's no need to miss out with these gluten-free recipes." ["parent"]=> int(0) ["count"]=> int(53) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [9]=> object(WP_Term)#12248 (11) { ["term_id"]=> int(155) ["name"]=> string(16) "Goodbye, gluten!" ["slug"]=> string(19) "dairy-free-delights" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(155) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(102) "If you're intolerant to gluten or have decided to go gluten-free, these recipes are ideal for you" ["parent"]=> int(0) ["count"]=> int(17) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [10]=> object(WP_Term)#13003 (11) { ["term_id"]=> int(256) ["name"]=> string(26) "Nut-free Christmas recipes" ["slug"]=> string(18) "nut-free-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(256) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Brilliant alternatives to traditional festive foods." ["parent"]=> int(0) ["count"]=> int(32) ["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, 29137264413839170245155256 ) OR rd.ingredients LIKE '%Christmas cake%' OR rd.ingredients LIKE '% Dairy-free%' OR rd.ingredients LIKE '% Dessert%' OR rd.ingredients LIKE '% Festive baking%' OR rd.ingredients LIKE '% Free from%' OR rd.ingredients LIKE '% free from recipes%' OR rd.ingredients LIKE '% Gluten free%' OR rd.ingredients LIKE '% nut-free%' OR rd.ingredients LIKE '% Vegan%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 21149 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16