POST-ID:22116 array(6) { [0]=> object(WP_Term)#11910 (11) { ["term_id"]=> int(169) ["name"]=> string(16) "200-400 calories" ["slug"]=> string(16) "200-400-calories" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(169) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Our favourite low calorie dishes..." ["parent"]=> int(0) ["count"]=> int(239) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#11909 (11) { ["term_id"]=> int(269) ["name"]=> string(25) "Christmas sprouts recipes" ["slug"]=> string(16) "christmas-sprout" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(269) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(42) "Spruce up your Brussels sprouts this year." ["parent"]=> int(0) ["count"]=> int(41) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#11932 (11) { ["term_id"]=> int(203) ["name"]=> string(13) "Healthy pasta" ["slug"]=> string(13) "healthy-pasta" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(203) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(40) "Light pasta dishes that are all low cal." ["parent"]=> int(0) ["count"]=> int(54) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#11931 (11) { ["term_id"]=> int(326) ["name"]=> string(5) "Pasta" ["slug"]=> string(5) "pasta" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(326) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(47) "Delicious pasta dishes from spaghetti to soups." ["parent"]=> int(0) ["count"]=> int(80) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#11949 (11) { ["term_id"]=> int(156) ["name"]=> string(13) "Perfect pasta" ["slug"]=> string(13) "perfect-pasta" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(156) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(88) "From lasagne to spaghetti, these scrumptious pasta dishes are perfect for all the family" ["parent"]=> int(0) ["count"]=> int(71) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#12714 (11) { ["term_id"]=> int(24) ["name"]=> string(14) "Speedy suppers" ["slug"]=> string(14) "speedy-suppers" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(24) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(85) ["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 ( 169, 26920332615624 ) OR rd.ingredients LIKE '%balanced%' OR rd.ingredients LIKE '% Fibre%' OR rd.ingredients LIKE '% Gnocchi%' OR rd.ingredients LIKE '% Midweek meals%' OR rd.ingredients LIKE '% Sausages%' OR rd.ingredients LIKE '% Sprouts%' OR rd.ingredients LIKE '% Vitamin c%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 22116 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16