POST-ID:40453 array(9) { [0]=> object(WP_Term)#20884 (11) { ["term_id"]=> int(158) ["name"]=> string(15) "20-minute meals" ["slug"]=> string(15) "20-minute-meals" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(158) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(90) "Super-quick and easy to make, these meals are great for preparing after a long day at work" ["parent"]=> int(0) ["count"]=> int(187) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#19645 (11) { ["term_id"]=> int(4) ["name"]=> string(11) "Family meal" ["slug"]=> string(11) "family-meal" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(4) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(58) "Something for all the family from tuna balls to spaghetti." ["parent"]=> int(0) ["count"]=> int(366) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#20881 (11) { ["term_id"]=> int(34) ["name"]=> string(12) "Friday lunch" ["slug"]=> string(12) "friday-lunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(34) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(107) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#19541 (11) { ["term_id"]=> int(213) ["name"]=> string(12) "Light supper" ["slug"]=> string(12) "light-supper" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(213) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(44) "Light on the stomach, light on the calories." ["parent"]=> int(0) ["count"]=> int(64) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#20782 (11) { ["term_id"]=> int(14145) ["name"]=> string(11) "May recipes" ["slug"]=> string(11) "may-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14145) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(156) "Discover the best May recipes using seasonal ingredients at their peak, from fresh spring mains to easy desserts and sides for simple, flavour-packed meals." ["parent"]=> int(0) ["count"]=> int(19) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#19650 (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(209) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#19618 (11) { ["term_id"]=> int(14120) ["name"]=> string(13) "Salad recipes" ["slug"]=> string(13) "salad-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14120) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(144) "Celebrate seasonal produce year-round with our vibrant salad recipes, from chicken caesar and Greek, to creamy potato salad and winter platters." ["parent"]=> int(0) ["count"]=> int(61) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#19544 (11) { ["term_id"]=> int(163) ["name"]=> string(19) "Scrumptious seafood" ["slug"]=> string(18) "let-s-have-lobster" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(163) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(71) "From crustaceans to cod, we've compiled some tasty recipes for you" ["parent"]=> int(0) ["count"]=> int(94) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#19642 (11) { ["term_id"]=> int(24) ["name"]=> string(14) "Speedy suppers" ["slug"]=> string(14) "speedy-suppers" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(24) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(34) "Easy suppers for the week" ["parent"]=> int(0) ["count"]=> int(106) ["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 ( 158, 434213141453601412016324 ) OR rd.ingredients LIKE '%Crab%' OR rd.ingredients LIKE '% Salad%' OR rd.ingredients LIKE '% Samphire%' OR rd.ingredients LIKE '% Sourdough bread%' OR rd.ingredients LIKE '% Watercress salad%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 40453 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16