POST-ID:40326 array(5) { [0]=> object(WP_Term)#16846 (11) { ["term_id"]=> int(158) ["name"]=> string(15) "20-minute meals" ["slug"]=> string(15) "20-minute-meals" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(158) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(90) "Super-quick and easy to make, these meals are great for preparing after a long day at work" ["parent"]=> int(0) ["count"]=> int(171) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16850 (11) { ["term_id"]=> int(343) ["name"]=> string(13) "Batch cooking" ["slug"]=> string(13) "batch-cooking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(343) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(153) "Need to get ahead with food prep for the week? Try batch-cooking one of our easy dinners or bakes, then freezing the leftovers for a speedy midweek meal." ["parent"]=> int(0) ["count"]=> int(52) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16817 (11) { ["term_id"]=> int(373) ["name"]=> string(7) "Biscuit" ["slug"]=> string(15) "biscuit-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(373) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(58) "There's nothing like a homemade biscuit with a cup of tea." ["parent"]=> int(0) ["count"]=> int(43) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16768 (11) { ["term_id"]=> int(146) ["name"]=> string(14) "Cookie recipes" ["slug"]=> string(14) "cookie-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(146) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(145) "Fill your cookie jar with a stack of freshly-baked beauties. Whether it's fun, themed cookies or healthy nibbles, we have something for everyone!" ["parent"]=> int(0) ["count"]=> int(25) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16837 (11) { ["term_id"]=> int(382) ["name"]=> string(15) "Cookies recipes" ["slug"]=> string(7) "cookies" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(382) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(42) "Sweet treats perfect for rainy afternoons." ["parent"]=> int(0) ["count"]=> int(55) ["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 ( 158, 343373146382 ) OR rd.ingredients LIKE '%Baking%' OR rd.ingredients LIKE '% Biscuits%' OR rd.ingredients LIKE '% Coconut%' OR rd.ingredients LIKE '% coconut flour%' OR rd.ingredients LIKE '% Cookies%' OR rd.ingredients LIKE '% Peanut butter%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 40326 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16