POST-ID:25325 array(9) { [0]=> object(WP_Term)#16265 (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(125) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16264 (11) { ["term_id"]=> int(212) ["name"]=> string(12) "High-protein" ["slug"]=> string(12) "high-protein" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(212) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(98) "These high-protein picks are perfect for those who want to boost their intake from time to time..." ["parent"]=> int(0) ["count"]=> int(39) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16269 (11) { ["term_id"]=> int(300) ["name"]=> string(6) "Indian" ["slug"]=> string(6) "indian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(300) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Spicy Eastern recipes such as masala chicken." ["parent"]=> int(0) ["count"]=> int(139) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16163 (11) { ["term_id"]=> int(43) ["name"]=> string(4) "Meat" ["slug"]=> string(4) "meat" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(43) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(62) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#17045 (11) { ["term_id"]=> int(370) ["name"]=> string(12) "Mother's Day" ["slug"]=> string(11) "mothers-day" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(370) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(26) "Recipes to treat your mum." ["parent"]=> int(0) ["count"]=> int(54) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16282 (11) { ["term_id"]=> int(419) ["name"]=> string(11) "Movie night" ["slug"]=> string(11) "movie-night" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(419) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(17) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#16245 (11) { ["term_id"]=> int(896) ["name"]=> string(7) "Weekend" ["slug"]=> string(7) "weekend" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(896) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(99) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#16180 (11) { ["term_id"]=> int(145) ["name"]=> string(31) "Winner, winner, chicken dinner!" ["slug"]=> string(28) "winner-winner-chicken-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(145) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(108) "Tired of the same old chicken dishes? Try something different with your chicken - we have plenty of options!" ["parent"]=> int(0) ["count"]=> int(60) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#16262 (11) { ["term_id"]=> int(192) ["name"]=> string(17) "World Chicken Day" ["slug"]=> string(17) "world-chicken-day" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(192) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(55) ["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 ( 75, 21230043370419896145192 ) OR rd.ingredients LIKE '%Chicken%' OR rd.ingredients LIKE '% Pakoras%' OR rd.ingredients LIKE '% Savoury snacks%' OR rd.ingredients LIKE '% Spicy food%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 25325 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16