POST-ID:40413 array(5) { [0]=> object(WP_Term)#16695 (11) { ["term_id"]=> int(422) ["name"]=> string(10) "BBQ dishes" ["slug"]=> string(10) "bbq-dishes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(422) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(71) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16783 (11) { ["term_id"]=> int(142) ["name"]=> string(7) "BBQ fun" ["slug"]=> string(24) "barbecue-or-oven-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(142) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(40) "Cater for your crowd come rain or shine." ["parent"]=> int(0) ["count"]=> int(43) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16750 (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(171) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16700 (11) { ["term_id"]=> int(199) ["name"]=> string(20) "Healthy dinner party" ["slug"]=> string(20) "healthy-dinner-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(199) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Guilt-free options for the conscientious host" ["parent"]=> int(0) ["count"]=> int(120) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16770 (11) { ["term_id"]=> int(7) ["name"]=> string(13) "Healthy lunch" ["slug"]=> string(13) "healthy-lunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(7) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(51) "Keep your healthy eating regime on the right track." ["parent"]=> int(0) ["count"]=> int(159) ["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 ( 422, 1421971997 ) OR rd.ingredients LIKE '%A week of healthy suppers%' OR rd.ingredients LIKE '% Barbecue%' OR rd.ingredients LIKE '% Cajun%' OR rd.ingredients LIKE '% Creole%' OR rd.ingredients LIKE '% Fibre%' OR rd.ingredients LIKE '% Five a day%' OR rd.ingredients LIKE '% Good for you%' OR rd.ingredients LIKE '% Grill%' OR rd.ingredients LIKE '% Healthy%' OR rd.ingredients LIKE '% Jennifer Joyce%' OR rd.ingredients LIKE '% Jerk chicken%' OR rd.ingredients LIKE '% Jerk seasoning%' OR rd.ingredients LIKE '% Kebabs%' OR rd.ingredients LIKE '% Low calorie%' OR rd.ingredients LIKE '% Low fat%' OR rd.ingredients LIKE '% Rain or shine%' OR rd.ingredients LIKE '% South america%' OR rd.ingredients LIKE '% Southern america%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 40413 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16