POST-ID:27382 array(12) { [0]=> object(WP_Term)#16855 (11) { ["term_id"]=> int(11457) ["name"]=> string(6) "cheese" ["slug"]=> string(6) "cheese" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(11457) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(54) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16851 (11) { ["term_id"]=> int(290) ["name"]=> string(29) "Christmas centrepiece recipes" ["slug"]=> string(21) "christmas-centrepiece" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(290) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(153) "Discover showstopping turkey alternatives for your Christmas dinner. We have delicious recipes for beef, goose and salmon, plus plenty of veggie options." ["parent"]=> int(0) ["count"]=> int(74) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16848 (11) { ["term_id"]=> int(47) ["name"]=> string(5) "Dairy" ["slug"]=> string(5) "dairy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(47) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(65) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16857 (11) { ["term_id"]=> int(210) ["name"]=> string(18) "Healthy vegetarian" ["slug"]=> string(18) "healthy-vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(210) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(31) "Diet-friendly meat-free feasts." ["parent"]=> int(0) ["count"]=> int(184) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16852 (11) { ["term_id"]=> int(120) ["name"]=> string(17) "Modern vegetarian" ["slug"]=> string(17) "modern-vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(120) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Veggie recipes for the whole family" ["parent"]=> int(0) ["count"]=> int(156) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16853 (11) { ["term_id"]=> int(329) ["name"]=> string(3) "Pie" ["slug"]=> string(3) "pie" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(329) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(86) "Perfect pastry and delicious fillings, both sweet and savoury. Cut a slice and dig in." ["parent"]=> int(0) ["count"]=> int(57) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#16782 (11) { ["term_id"]=> int(53) ["name"]=> string(21) "Top 20 Autumn recipes" ["slug"]=> string(21) "top-20-autumn-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(53) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(39) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#16747 (11) { ["term_id"]=> int(413) ["name"]=> string(10) "Vegetarian" ["slug"]=> string(10) "vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(413) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(43) "Meat-free recipes for entertaining and more" ["parent"]=> int(0) ["count"]=> int(582) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#16866 (11) { ["term_id"]=> int(260) ["name"]=> string(28) "Vegetarian Christmas recipes" ["slug"]=> string(20) "vegetarian-christmas" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(260) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(95) "Enticing meat-free recipes for the festive season, including main courses, starters and snacks." ["parent"]=> int(0) ["count"]=> int(95) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [9]=> object(WP_Term)#16833 (11) { ["term_id"]=> int(262) ["name"]=> string(36) "Vegetarian Christmas starter recipes" ["slug"]=> string(28) "vegetarian-christmas-starter" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(262) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(157) "Kick off your Christmas dinner menu with one of our impressive and tasty meat-free starters. Get creative with soups, salads, tarts and other veggies dishes." ["parent"]=> int(0) ["count"]=> int(52) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [10]=> object(WP_Term)#16570 (11) { ["term_id"]=> int(26) ["name"]=> string(15) "Vegetarian kids" ["slug"]=> string(15) "vegetarian-kids" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(26) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(78) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [11]=> object(WP_Term)#16850 (11) { ["term_id"]=> int(12) ["name"]=> string(16) "Vegetarian party" ["slug"]=> string(16) "vegetarian-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(12) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Impress with an imaginative spread." ["parent"]=> int(0) ["count"]=> int(121) ["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 ( 11457, 29047210120329534132602622612 ) OR rd.ingredients LIKE '%Cheese%' OR rd.ingredients LIKE '% Cheese and onion%' OR rd.ingredients LIKE '% Homemade pastry%' OR rd.ingredients LIKE '% next level recipes%' OR rd.ingredients LIKE '% PASTRY%' OR rd.ingredients LIKE '% Pie%' OR rd.ingredients LIKE '% Rye flour%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 27382 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16