POST-ID:31176 array(14) { [0]=> object(WP_Term)#19763 (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)#19761 (11) { ["term_id"]=> int(315) ["name"]=> string(5) "Curry" ["slug"]=> string(5) "curry" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(315) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(85) "Rustle up a spicy supper using fish, vegetables or meat and a blend of rich flavours." ["parent"]=> int(0) ["count"]=> int(84) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#21004 (11) { ["term_id"]=> int(157) ["name"]=> string(15) "Curry creations" ["slug"]=> string(15) "curry-creations" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(157) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(131) "Whether you're entertaining guests or simply looking to indulge in some flavoursome food, these curries will have you covered!" ["parent"]=> int(0) ["count"]=> int(57) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#19766 (11) { ["term_id"]=> int(895) ["name"]=> string(12) "Dinner party" ["slug"]=> string(12) "dinner-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(895) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(229) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#19760 (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" } [5]=> object(WP_Term)#19765 (11) { ["term_id"]=> int(14079) ["name"]=> string(12) "Lamb recipes" ["slug"]=> string(12) "lamb-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14079) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(107) "From Easter centrepieces to midweek meals, explore lamb recipes such as roast leg, curry, chops, and kofta." ["parent"]=> int(0) ["count"]=> int(27) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#19764 (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" } [7]=> object(WP_Term)#19762 (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" } [8]=> object(WP_Term)#19654 (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" } [9]=> object(WP_Term)#19690 (11) { ["term_id"]=> int(33) ["name"]=> string(5) "Party" ["slug"]=> string(10) "party-food" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(33) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(131) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [10]=> object(WP_Term)#19769 (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" } [11]=> object(WP_Term)#19738 (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" } [12]=> object(WP_Term)#19475 (11) { ["term_id"]=> int(144) ["name"]=> string(26) "Sharing-style dinner party" ["slug"]=> string(26) "sharing-style-dinner-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(144) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(105) "Spend less time at the stove-top and more time entertaining, with these easy-to-make dinner party dishes." ["parent"]=> int(0) ["count"]=> int(148) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [13]=> object(WP_Term)#19758 (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 ( 14094, 3151578957514079414305405331253142144338 ) OR rd.ingredients LIKE '%Apricots%' OR rd.ingredients LIKE '% Chickpeas%' OR rd.ingredients LIKE '% Couscous%' OR rd.ingredients LIKE '% Lamb tagine%' OR rd.ingredients LIKE '% One pan dishes%' OR rd.ingredients LIKE '% rose harissa%' OR rd.ingredients LIKE '% Tom Kerridge%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 31176 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16