POST-ID:22621 array(5) { [0]=> object(WP_Term)#16207 (11) { ["term_id"]=> int(367) ["name"]=> string(13) "Easter baking" ["slug"]=> string(13) "easter-baking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(367) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(33) "Sugar, spice and all things nice." ["parent"]=> int(0) ["count"]=> int(67) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16272 (11) { ["term_id"]=> int(386) ["name"]=> string(11) "Easy baking" ["slug"]=> string(11) "easy-baking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(386) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(47) "Simple cakes, cupcakes, traybakes and biscuits." ["parent"]=> int(0) ["count"]=> int(149) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16235 (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(53) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16022 (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)#16259 (11) { ["term_id"]=> int(52) ["name"]=> string(18) "Seasonal September" ["slug"]=> string(8) "seasonal" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(52) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(47) ["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 ( 367, 3864114552 ) OR rd.ingredients LIKE '%Apples%' OR rd.ingredients LIKE '% Caramel%' OR rd.ingredients LIKE '% Clafoutis%' OR rd.ingredients LIKE '% Family dessert%' OR rd.ingredients LIKE '% Pudding%' OR rd.ingredients LIKE '% Salted caramel%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 22621 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16