POST-ID:20866 array(6) { [0]=> object(WP_Term)#11910 (11) { ["term_id"]=> int(61) ["name"]=> string(15) "60 minute bakes" ["slug"]=> string(15) "60-minute-bakes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(61) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(91) "Light loaves, drizzled icing and fluffy sponges, these quick cakes are fuss-free yet fancy." ["parent"]=> int(0) ["count"]=> int(50) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#11909 (11) { ["term_id"]=> int(415) ["name"]=> string(7) "Chicken" ["slug"]=> string(7) "chicken" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(415) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(84) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#11932 (11) { ["term_id"]=> int(201) ["name"]=> string(15) "Healthy one-pot" ["slug"]=> string(15) "healthy-one-pot" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(201) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(38) "Comfort food with less of the calories" ["parent"]=> int(0) ["count"]=> int(30) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#11931 (11) { ["term_id"]=> int(325) ["name"]=> string(7) "One-pot" ["slug"]=> string(7) "one-pot" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(325) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(62) "Create comfort in a pot with these filling, sumptuous recipes," ["parent"]=> int(0) ["count"]=> int(68) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#11949 (11) { ["term_id"]=> int(403) ["name"]=> string(8) "Traybake" ["slug"]=> string(8) "traybake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(403) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(61) "Simple, no-fuss cakes to be cut into squares to feed a crowd." ["parent"]=> int(0) ["count"]=> int(34) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#12714 (11) { ["term_id"]=> int(145) ["name"]=> string(31) "Winner, winner, chicken dinner!" ["slug"]=> string(28) "winner-winner-chicken-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(145) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(108) "Tired of the same old chicken dishes? Try something different with your chicken - we have plenty of options!" ["parent"]=> int(0) ["count"]=> int(46) ["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 ( 61, 415201325403145 ) OR rd.ingredients LIKE '%Balanced meal%' OR rd.ingredients LIKE '% Chicken%' OR rd.ingredients LIKE '% Folate%' OR rd.ingredients LIKE '% Garlic croutons%' OR rd.ingredients LIKE '% Low calorie%' OR rd.ingredients LIKE '% Midweek meal%' OR rd.ingredients LIKE '% One-pot%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 20866 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16