POST-ID:34256 array(7) { [0]=> object(WP_Term)#19232 (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(142) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#19134 (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" } [2]=> object(WP_Term)#20300 (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(54) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#19242 (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" } [4]=> object(WP_Term)#19208 (11) { ["term_id"]=> int(305) ["name"]=> string(8) "Moroccan" ["slug"]=> string(8) "moroccan" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(305) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(69) "Exotic North African dishes that are big on flavour, aroma and spice." ["parent"]=> int(0) ["count"]=> int(41) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#19137 (11) { ["term_id"]=> int(405) ["name"]=> string(20) "Moroccan in Cuisines" ["slug"]=> string(20) "moroccan-in-cuisines" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(405) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(72) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#19235 (11) { ["term_id"]=> int(338) ["name"]=> string(6) "Tagine" ["slug"]=> string(6) "tagine" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(338) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(23) ["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 ( 415, 197198201305405338 ) OR rd.ingredients LIKE '%Apricots%' OR rd.ingredients LIKE '% Aubergines%' OR rd.ingredients LIKE '% Chicken%' OR rd.ingredients LIKE '% Chickpeas%' OR rd.ingredients LIKE '% healthy casserole%' OR rd.ingredients LIKE '% Hotpot%' OR rd.ingredients LIKE '% Red peppers%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 34256 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16