POST-ID:32750 array(7) { [0]=> object(WP_Term)#15576 (11) { ["term_id"]=> int(169) ["name"]=> string(16) "200-400 calories" ["slug"]=> string(16) "200-400-calories" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(169) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(147) "Low in calories yet super-satisfying – these lighter recipes make the most of delicious ingredients. Discover salads, stir-fries, stews and more." ["parent"]=> int(0) ["count"]=> int(297) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15512 (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" } [2]=> object(WP_Term)#15477 (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" } [3]=> object(WP_Term)#15595 (11) { ["term_id"]=> int(45) ["name"]=> string(5) "Fruit" ["slug"]=> string(5) "fruit" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(45) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(64) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15557 (11) { ["term_id"]=> int(389) ["name"]=> string(11) "Fruity cake" ["slug"]=> string(11) "fruity-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(389) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(36) "Cakes bursting with fruity flavours." ["parent"]=> int(0) ["count"]=> int(51) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15345 (11) { ["term_id"]=> int(402) ["name"]=> string(11) "Summer cake" ["slug"]=> string(11) "summer-cake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(402) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(55) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#15582 (11) { ["term_id"]=> int(51) ["name"]=> string(14) "Summer dessert" ["slug"]=> string(14) "summer-dessert" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(51) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(24) "Recipes to beat the heat" ["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 ( 169, 1103354538940251 ) OR rd.ingredients LIKE '%Baking%' OR rd.ingredients LIKE '% Dessert%' OR rd.ingredients LIKE '% Strawberries%' OR rd.ingredients LIKE '% Summer%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 32750 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16