POST-ID:40380 array(4) { [0]=> object(WP_Term)#19627 (11) { ["term_id"]=> int(4) ["name"]=> string(11) "Family meal" ["slug"]=> string(11) "family-meal" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(4) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(58) "Something for all the family from tuna balls to spaghetti." ["parent"]=> int(0) ["count"]=> int(366) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#19595 (11) { ["term_id"]=> int(34) ["name"]=> string(12) "Friday lunch" ["slug"]=> string(12) "friday-lunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(34) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(107) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#19524 (11) { ["term_id"]=> int(14136) ["name"]=> string(30) "Healthy chicken breast recipes" ["slug"]=> string(30) "healthy-chicken-breast-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14136) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(130) "Discover healthy new ways to serve up lean chicken breasts with our favourite recipes, including curries, salads, soups and stews." ["parent"]=> int(0) ["count"]=> int(23) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#19521 (11) { ["term_id"]=> int(143) ["name"]=> string(14) "Hearty lunches" ["slug"]=> string(21) "healthy-lunch-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(143) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Keep your healthy eating regime on the right track." ["parent"]=> int(0) ["count"]=> int(88) ["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 ( 4, 3414136143 ) OR rd.ingredients LIKE '%Chicken and chorizo stew%' OR rd.ingredients LIKE '% Chicken breasts%' OR rd.ingredients LIKE '% Chorizo%' OR rd.ingredients LIKE '% Easy%' OR rd.ingredients LIKE '% easy healthy dinner%' OR rd.ingredients LIKE '% Five a day%' OR rd.ingredients LIKE '% Good Food%' OR rd.ingredients LIKE '% healthy rice recipe%' OR rd.ingredients LIKE '% healthy Spanish recipe%' OR rd.ingredients LIKE '% Low fat%' OR rd.ingredients LIKE '% One-pot%' OR rd.ingredients LIKE '% One-pot recipes%' OR rd.ingredients LIKE '% Quick%' OR rd.ingredients LIKE '% Rice dish%' OR rd.ingredients LIKE '% Super healthy%' 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 <> 40380 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16