POST-ID:21139 array(7) { [0]=> object(WP_Term)#16842 (11) { ["term_id"]=> int(5) ["name"]=> string(17) "Cheap and healthy" ["slug"]=> string(17) "cheap-and-healthy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(5) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(55) "Trying to be healthy on a budget has never been easier." ["parent"]=> int(0) ["count"]=> int(81) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16734 (11) { ["term_id"]=> int(137) ["name"]=> string(21) "Clever ways with Kale" ["slug"]=> string(21) "clever-ways-with-kale" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(137) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(105) "This super-green leaf is packed with goodness. Serve it on the side or worked into a savoury main course." ["parent"]=> int(0) ["count"]=> int(11) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#17674 (11) { ["term_id"]=> int(409) ["name"]=> string(4) "Easy" ["slug"]=> string(4) "easy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(409) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(55) "Keep it easy with these simple but super-tasty recipes." ["parent"]=> int(0) ["count"]=> int(570) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16855 (11) { ["term_id"]=> int(197) ["name"]=> string(7) "Healthy" ["slug"]=> string(7) "healthy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(197) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Packed with the good stuff to get you feeling great." ["parent"]=> int(0) ["count"]=> int(173) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16822 (11) { ["term_id"]=> int(318) ["name"]=> string(7) "Houmous" ["slug"]=> string(7) "houmous" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(318) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(58) "Whip up a chickpea dip and try an original serving option." ["parent"]=> int(0) ["count"]=> int(29) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16751 (11) { ["term_id"]=> int(342) ["name"]=> string(4) "kale" ["slug"]=> string(4) "kale" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(342) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(38) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#16846 (11) { ["term_id"]=> int(73) ["name"]=> string(17) "We love beetroot!" ["slug"]=> string(20) "why-we-love-beetroot" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(73) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(125) "Hardy beetroot is a reliable and delicious star of many a dish. Try our favourite recipes and discover this bright beauty..." ["parent"]=> int(0) ["count"]=> int(9) ["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 ( 5, 13740919731834273 ) OR rd.ingredients LIKE '%Beetroot%' OR rd.ingredients LIKE '% Buffet%' OR rd.ingredients LIKE '% Christmas%' OR rd.ingredients LIKE '% homemade hummus%' OR rd.ingredients LIKE '% Hummus%' OR rd.ingredients LIKE '% Kale%' OR rd.ingredients LIKE '% Starter%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 21139 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16