POST-ID:22166 array(8) { [0]=> object(WP_Term)#12293 (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(35) "Our favourite low calorie dishes..." ["parent"]=> int(0) ["count"]=> int(239) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#12298 (11) { ["term_id"]=> int(68) ["name"]=> string(6) "Buffet" ["slug"]=> string(6) "buffet" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(68) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(31) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#12296 (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(89) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#12290 (11) { ["term_id"]=> int(346) ["name"]=> string(24) "Five ingredients or less" ["slug"]=> string(24) "five-ingredients-or-less" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(346) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Quick fix recipes with minimal shopping fuss." ["parent"]=> int(0) ["count"]=> int(62) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#12294 (11) { ["term_id"]=> int(198) ["name"]=> string(15) "Healthy chicken" ["slug"]=> string(15) "healthy-chicken" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(198) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Diet-friendly ways to cook chicken." ["parent"]=> int(0) ["count"]=> int(52) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#12287 (11) { ["term_id"]=> int(206) ["name"]=> string(13) "Healthy snack" ["slug"]=> string(13) "healthy-snack" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(206) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(28) "Dips, muffins and much more." ["parent"]=> int(0) ["count"]=> int(56) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#12326 (11) { ["term_id"]=> int(384) ["name"]=> string(38) "Mouthwatering fried chicken recipes…" ["slug"]=> string(21) "fried-chicken-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(384) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(49) "We’ve got the perfect poultry dishes to try" ["parent"]=> int(0) ["count"]=> int(15) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#12292 (11) { ["term_id"]=> int(419) ["name"]=> string(11) "Movie night" ["slug"]=> string(11) "movie-night" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(419) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(16) ["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, 68415346198206384419 ) OR rd.ingredients LIKE '%air fryer%' OR rd.ingredients LIKE '% Chicken wings%' OR rd.ingredients LIKE '% Fried chicken%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 22166 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16