POST-ID:31176 array(12) { [0]=> object(WP_Term)#15588 (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(74) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15599 (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(49) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15587 (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(206) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15596 (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(84) "Traditional Arabic delicacies to enjoy cooking and serving up over the long weekend!" ["parent"]=> int(0) ["count"]=> int(121) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15591 (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(69) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15590 (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" } [6]=> object(WP_Term)#15526 (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(53) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#15491 (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(114) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#15609 (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(159) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [9]=> object(WP_Term)#15571 (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(115) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [10]=> object(WP_Term)#15333 (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(137) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [11]=> object(WP_Term)#15589 (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 ( 315, 15789575414305405331253142144338 ) 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