POST-ID:22112 array(4) { [0]=> object(WP_Term)#16849 (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(306) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16816 (11) { ["term_id"]=> int(14065) ["name"]=> string(19) "Cauliflower recipes" ["slug"]=> string(19) "cauliflower-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14065) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(178) "A head of cauliflower goes a long way. This versatile brassica adds smoothness in sauces and texture in dishes such as cauliflower cheese, roast cauliflower and cauliflower rice." ["parent"]=> int(0) ["count"]=> int(28) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16745 (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(570) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16728 (11) { ["term_id"]=> int(24) ["name"]=> string(14) "Speedy suppers" ["slug"]=> string(14) "speedy-suppers" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(24) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(34) "Easy suppers for the week" ["parent"]=> int(0) ["count"]=> int(106) ["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, 1406540924 ) OR rd.ingredients LIKE '%balanced%' OR rd.ingredients LIKE '% Calcium%' OR rd.ingredients LIKE '% Cauliflower%' OR rd.ingredients LIKE '% Fibre%' OR rd.ingredients LIKE '% Folate%' OR rd.ingredients LIKE '% Halloumi%' OR rd.ingredients LIKE '% Midweek meal%' OR rd.ingredients LIKE '% Rice%' OR rd.ingredients LIKE '% Spinach%' OR rd.ingredients LIKE '% Under 30 mins%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 22112 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16