POST-ID:24988 array(13) { [0]=> object(WP_Term)#20403 (11) { ["term_id"]=> int(14094) ["name"]=> string(16) "Chickpea recipes" ["slug"]=> string(16) "chickpea-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14094) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(149) "Discover delicious and nutritious chickpea recipes, from hearty stews to vibrant salads and creamy hummus. Perfect for healthy, protein-packed meals." ["parent"]=> int(0) ["count"]=> int(27) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#21646 (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(600) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#20405 (11) { ["term_id"]=> int(410) ["name"]=> string(19) "Easy but impressive" ["slug"]=> string(15) "easy-impressive" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(410) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(82) "Whip up dishes that look and taste gourmet, without spending hours in the kitchen." ["parent"]=> int(0) ["count"]=> int(329) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#21641 (11) { ["term_id"]=> int(32) ["name"]=> string(17) "Easy entertaining" ["slug"]=> string(17) "easy-entertaining" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(32) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(251) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#20404 (11) { ["term_id"]=> int(49) ["name"]=> string(11) "Easy summer" ["slug"]=> string(11) "easy-summer" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(49) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Our favourite dishes for the season" ["parent"]=> int(0) ["count"]=> int(215) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#20407 (11) { ["term_id"]=> int(75) ["name"]=> string(9) "Eid feast" ["slug"]=> string(11) "eid-cooking" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(75) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(77) "Traditional delicacies to enjoy cooking and serving up over the long weekend!" ["parent"]=> int(0) ["count"]=> int(141) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#20406 (11) { ["term_id"]=> int(208) ["name"]=> string(14) "Healthy summer" ["slug"]=> string(14) "healthy-summer" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(208) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "BBQ, picnic and al fresco feasting." ["parent"]=> int(0) ["count"]=> int(101) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#20414 (11) { ["term_id"]=> int(111) ["name"]=> string(16) "Meat-free feasts" ["slug"]=> string(16) "meat-free-feasts" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(111) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(32) "Mouthwatering vegetarian recipes" ["parent"]=> int(0) ["count"]=> int(50) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#20413 (11) { ["term_id"]=> int(414) ["name"]=> string(14) "Middle Eastern" ["slug"]=> string(14) "middle-eastern" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(414) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(91) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [9]=> object(WP_Term)#20410 (11) { ["term_id"]=> int(12531) ["name"]=> string(7) "Ramadan" ["slug"]=> string(7) "ramadan" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(12531) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(165) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [10]=> object(WP_Term)#20380 (11) { ["term_id"]=> int(42) ["name"]=> string(15) "Ramadan cooking" ["slug"]=> string(15) "ramadan-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(42) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(140) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [11]=> object(WP_Term)#20275 (11) { ["term_id"]=> int(154) ["name"]=> string(13) "Summer salads" ["slug"]=> string(13) "summer-salads" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(154) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(99) "These light, refreshing and nutritious salads are perfect for tucking into during the hotter months" ["parent"]=> int(0) ["count"]=> int(124) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [12]=> object(WP_Term)#20401 (11) { ["term_id"]=> int(14) ["name"]=> string(16) "Vegetarian salad" ["slug"]=> string(16) "vegetarian-salad" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(43) "Stylish and substantial main course salads." ["parent"]=> int(0) ["count"]=> int(98) ["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 ( 14094, 409410324975208111414125314215414 ) OR rd.ingredients LIKE '%Aubergine%' OR rd.ingredients LIKE '% balanced meals%' OR rd.ingredients LIKE '% Chickpeas%' OR rd.ingredients LIKE '% Chipotle%' OR rd.ingredients LIKE '% Folate%' OR rd.ingredients LIKE '% Pitta%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 24988 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16