POST-ID:20858 array(5) { [0]=> object(WP_Term)#16779 (11) { ["term_id"]=> int(429) ["name"]=> string(12) "Best of beef" ["slug"]=> string(12) "best-of-beef" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(429) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(211) "Whether it’s your go-to cut of meat for a British Sunday roast, or if you prefer your beef in a burger bun, the wide range of cuts available mean it really is one of the most versatile meats on the market." ["parent"]=> int(0) ["count"]=> int(48) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16783 (11) { ["term_id"]=> int(311) ["name"]=> string(6) "Burger" ["slug"]=> string(14) "burger-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(311) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(158) "Discover our best burger recipes, with everything you'll ever need to put inside a bun, from juicy beef patties, to chicken, turkey, veggie and vegan burgers." ["parent"]=> int(0) ["count"]=> int(83) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16750 (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(336) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16679 (11) { ["term_id"]=> int(43) ["name"]=> string(4) "Meat" ["slug"]=> string(4) "meat" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(43) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(80) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16770 (11) { ["term_id"]=> int(46) ["name"]=> string(10) "Vegetables" ["slug"]=> string(10) "vegetables" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(46) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(133) ["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 ( 429, 31144346 ) OR rd.ingredients LIKE '%Batch cooking%' OR rd.ingredients LIKE '% Burgers%' OR rd.ingredients LIKE '% Cheeseburger%' OR rd.ingredients LIKE '% Family food%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 20858 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16