POST-ID:21458 array(7) { [0]=> object(WP_Term)#15434 (11) { ["term_id"]=> int(894) ["name"]=> string(5) "Asian" ["slug"]=> string(5) "asian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(894) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(55) "Discover the rich and diverse flavours of Asian cuisine" ["parent"]=> int(0) ["count"]=> int(42) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15341 (11) { ["term_id"]=> int(409) ["name"]=> string(4) "Easy" ["slug"]=> string(4) "easy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(409) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(55) "Keep it easy with these simple but super-tasty recipes." ["parent"]=> int(0) ["count"]=> int(514) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16217 (11) { ["term_id"]=> int(121) ["name"]=> string(21) "Heart-healthy recipes" ["slug"]=> string(21) "heart-healthy-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(121) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(133) "We’ve created a collection of ultimate heart-friendly recipes. Discover which ingredients you should be packing into your diet." ["parent"]=> int(0) ["count"]=> int(52) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15448 (11) { ["term_id"]=> int(342) ["name"]=> string(4) "kale" ["slug"]=> string(4) "kale" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(342) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(38) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15409 (11) { ["term_id"]=> int(216) ["name"]=> string(18) "Low-calorie dinner" ["slug"]=> string(18) "low-calorie-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(216) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(41) "Delicious dinners all under 400 calories." ["parent"]=> int(0) ["count"]=> int(84) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15346 (11) { ["term_id"]=> int(225) ["name"]=> string(15) "Low-salt dinner" ["slug"]=> string(15) "low-salt-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(225) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(57) "Skipping the sodium doesn't mean losing any flavour." ["parent"]=> int(0) ["count"]=> int(41) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#15428 (11) { ["term_id"]=> int(323) ["name"]=> string(6) "Noodle" ["slug"]=> string(6) "noodle" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(323) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(60) "Recipes for oodles of noodles, including soba, rice and egg." ["parent"]=> int(0) ["count"]=> int(45) ["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 ( 894, 409121342216225323 ) OR rd.ingredients LIKE '%Calcium%' OR rd.ingredients LIKE '% Fibre%' OR rd.ingredients LIKE '% Folate%' OR rd.ingredients LIKE '% Hoisin%' OR rd.ingredients LIKE '% Iron%' OR rd.ingredients LIKE '% Low calorie%' OR rd.ingredients LIKE '% Low fat%' OR rd.ingredients LIKE '% Midweek meals%' OR rd.ingredients LIKE '% Noodles%' OR rd.ingredients LIKE '% Pork%' OR rd.ingredients LIKE '% sticky pork%' OR rd.ingredients LIKE '% Vitamin c%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 21458 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16