POST-ID:31175 array(9) { [0]=> object(WP_Term)#15435 (11) { ["term_id"]=> int(427) ["name"]=> string(18) "Breakfast delights" ["slug"]=> string(18) "breakfast-delights" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(427) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(92) "Start your day right with breakfast delight recipes that make mornings deliciously memorable" ["parent"]=> int(0) ["count"]=> int(117) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15437 (11) { ["term_id"]=> int(161) ["name"]=> string(21) "Breakfast inspiration" ["slug"]=> string(21) "breakfast-inspiration" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(161) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(86) "These simple breakfast ideas are quick to make and will have you set for the day ahead" ["parent"]=> int(0) ["count"]=> int(86) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15441 (11) { ["term_id"]=> int(19) ["name"]=> string(14) "Eat healthier!" ["slug"]=> string(15) "healthy-cooking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(19) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(47) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15373 (11) { ["term_id"]=> int(197) ["name"]=> string(7) "Healthy" ["slug"]=> string(7) "healthy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(197) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Packed with the good stuff to get you feeling great." ["parent"]=> int(0) ["count"]=> int(159) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15380 (11) { ["term_id"]=> int(173) ["name"]=> string(25) "Healthy breakfast recipes" ["slug"]=> string(17) "healthy-breakfast" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(173) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(65) "Start your day right with these nutritious yet delicious choices." ["parent"]=> int(0) ["count"]=> int(76) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15455 (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" } [6]=> object(WP_Term)#15416 (11) { ["term_id"]=> int(214) ["name"]=> string(21) "Low-calorie breakfast" ["slug"]=> string(21) "low-calorie-breakfast" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(214) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(35) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#15186 (11) { ["term_id"]=> int(223) ["name"]=> string(18) "Low-salt breakfast" ["slug"]=> string(18) "low-salt-breakfast" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(223) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(40) "Light cereals and sodium-free savouries." ["parent"]=> int(0) ["count"]=> int(26) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#15436 (11) { ["term_id"]=> int(30) ["name"]=> string(17) "Quick and healthy" ["slug"]=> string(17) "quick-and-healthy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(30) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["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 ( 427, 1611919717312121422330 ) OR rd.ingredients LIKE '%Almonds%' OR rd.ingredients LIKE '% Cashews%' OR rd.ingredients LIKE '% coconut flakes%' OR rd.ingredients LIKE '% Cranberries%' OR rd.ingredients LIKE '% Dried fruit%' OR rd.ingredients LIKE '% Granola%' OR rd.ingredients LIKE '% Jewish food%' OR rd.ingredients LIKE '% matzo%' OR rd.ingredients LIKE '% Nuts%' OR rd.ingredients LIKE '% Passover%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 31175 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16