POST-ID:46650 array(8) { [0]=> object(WP_Term)#16843 (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" } [1]=> object(WP_Term)#16844 (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)#16735 (11) { ["term_id"]=> int(14053) ["name"]=> string(14) "Healthy dinner" ["slug"]=> string(14) "healthy-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14053) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(44) "Discover our best ever healthy dinner ideas." ["parent"]=> int(0) ["count"]=> int(33) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#17673 (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" } [4]=> object(WP_Term)#16857 (11) { ["term_id"]=> int(360) ["name"]=> string(12) "Meal for two" ["slug"]=> string(12) "meal-for-two" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(360) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(56) "Serve up an intimate feast with a decadent meal for two." ["parent"]=> int(0) ["count"]=> int(171) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16824 (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(119) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#16774 (11) { ["term_id"]=> int(327) ["name"]=> string(10) "Pasta bake" ["slug"]=> string(10) "pasta-bake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(327) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(39) "Serve up a hearty bake to feed a crowd." ["parent"]=> int(0) ["count"]=> int(55) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#16839 (11) { ["term_id"]=> int(403) ["name"]=> string(8) "Traybake" ["slug"]=> string(8) "traybake" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(403) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(61) "Simple, no-fuss cakes to be cut into squares to feed a crowd." ["parent"]=> int(0) ["count"]=> int(68) ["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 ( 409, 197140537360326327403 ) OR rd.ingredients LIKE '%Artichokes%' OR rd.ingredients LIKE '% Courgette%' OR rd.ingredients LIKE '% Gnocchi%' OR rd.ingredients LIKE '% Ricotta%' OR rd.ingredients LIKE '% Traybake%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 46650 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16