POST-ID:25317 array(16) { [0]=> object(WP_Term)#16276 (11) { ["term_id"]=> int(61) ["name"]=> string(15) "60 minute bakes" ["slug"]=> string(15) "60-minute-bakes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(61) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(41) "These quick bakes are fuss-free yet fancy" ["parent"]=> int(0) ["count"]=> int(52) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16277 (11) { ["term_id"]=> int(133) ["name"]=> string(11) "A cut above" ["slug"]=> string(11) "a-cut-above" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(133) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(145) "Take some care and attention when cooking with meat- whether slow-roasting a joint or flash frying a steak. Check out our favourite meat recipes." ["parent"]=> int(0) ["count"]=> int(78) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16278 (11) { ["term_id"]=> int(1103) ["name"]=> string(13) "Afternoon Tea" ["slug"]=> string(13) "afternoon-tea" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(1103) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(148) "Throw your own afternoon tea party with our selection of teatime treats, from delicate scones, cakes and patisserie to savoury pies and scotch eggs." ["parent"]=> int(0) ["count"]=> int(124) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16286 (11) { ["term_id"]=> int(35) ["name"]=> string(21) "Afternoon tea recipes" ["slug"]=> string(21) "afternoon-tea-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(35) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(148) "Throw your own afternoon tea party with our selection of teatime treats, from delicate scones, cakes and patisserie to savoury pies and scotch eggs." ["parent"]=> int(0) ["count"]=> int(108) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16290 (11) { ["term_id"]=> int(118) ["name"]=> string(16) "All-time classic" ["slug"]=> string(16) "all-time-classic" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(118) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(61) "Our selection of recipes that will surely sate your appetite." ["parent"]=> int(0) ["count"]=> int(77) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16280 (11) { ["term_id"]=> int(295) ["name"]=> string(7) "British" ["slug"]=> string(15) "british-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(295) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(147) "Dig into the best of British cuisine by enjoying classics including roasts, stews and fish and chips – or dabble in delicious desserts" ["parent"]=> int(0) ["count"]=> int(42) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#16284 (11) { ["term_id"]=> int(80) ["name"]=> string(15) "Budget beauties" ["slug"]=> string(15) "budget-beauties" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(80) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(49) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#16283 (11) { ["term_id"]=> int(112) ["name"]=> string(12) "Budget meals" ["slug"]=> string(12) "budget-meals" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(112) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Thrifty recipes to help you keep cooking costs down" ["parent"]=> int(0) ["count"]=> int(60) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#16282 (11) { ["term_id"]=> int(235) ["name"]=> string(14) "Budget recipes" ["slug"]=> string(14) "budget-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(235) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(66) "Cheaper recipes and frugal bites to save you money in the kitchen." ["parent"]=> int(0) ["count"]=> int(122) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [9]=> object(WP_Term)#16287 (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(132) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [10]=> object(WP_Term)#16200 (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(46) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [11]=> object(WP_Term)#16235 (11) { ["term_id"]=> int(226) ["name"]=> string(14) "Low-salt snack" ["slug"]=> string(14) "low-salt-snack" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(226) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(53) "Sweet and savoury bites that are light on the sodium." ["parent"]=> int(0) ["count"]=> int(33) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [12]=> object(WP_Term)#16300 (11) { ["term_id"]=> int(227) ["name"]=> string(11) "Lower sugar" ["slug"]=> string(9) "low-sugar" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(227) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(82) "Healthy and filling lunches and dinners - all with under 10g of sugar per serving." ["parent"]=> int(0) ["count"]=> int(35) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [13]=> object(WP_Term)#16263 (11) { ["term_id"]=> int(165) ["name"]=> string(14) "Meat-free fare" ["slug"]=> string(14) "meat-free-fare" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(165) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(79) "From vegan to vegetarian dishes, we've got some delicious meat-free dishes" ["parent"]=> int(0) ["count"]=> int(44) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [14]=> object(WP_Term)#15996 (11) { ["term_id"]=> int(401) ["name"]=> string(5) "Scone" ["slug"]=> string(5) "scone" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(401) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(67) "Best served warm and buttered- try out new sweet and savoury ideas." ["parent"]=> int(0) ["count"]=> int(29) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [15]=> object(WP_Term)#16274 (11) { ["term_id"]=> int(3) ["name"]=> string(6) "Scones" ["slug"]=> string(6) "scones" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(3) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(74) "Scones Best served warm and buttered- try out new sweet and savoury ideas." ["parent"]=> int(0) ["count"]=> int(20) ["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 ( 61, 13311033511829580112235912362262271654013 ) OR rd.ingredients LIKE '%Baking%' OR rd.ingredients LIKE '% Scones%' OR rd.ingredients LIKE '% Sultanas%' OR rd.ingredients LIKE '% Sweet%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 25317 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16