POST-ID:24981 array(15) { [0]=> object(WP_Term)#15592 (11) { ["term_id"]=> int(1103) ["name"]=> string(13) "Afternoon Tea" ["slug"]=> string(13) "afternoon-tea" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(1103) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(148) "Throw your own afternoon tea party with our selection of teatime treats, from delicate scones, cakes and patisserie to savoury pies and scotch eggs." ["parent"]=> int(0) ["count"]=> int(124) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15595 (11) { ["term_id"]=> int(35) ["name"]=> string(21) "Afternoon tea recipes" ["slug"]=> string(21) "afternoon-tea-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(35) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(148) "Throw your own afternoon tea party with our selection of teatime treats, from delicate scones, cakes and patisserie to savoury pies and scotch eggs." ["parent"]=> int(0) ["count"]=> int(108) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15598 (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(307) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15594 (11) { ["term_id"]=> int(206) ["name"]=> string(13) "Healthy snack" ["slug"]=> string(13) "healthy-snack" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(206) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(28) "Dips, muffins and much more." ["parent"]=> int(0) ["count"]=> int(56) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15605 (11) { ["term_id"]=> int(210) ["name"]=> string(18) "Healthy vegetarian" ["slug"]=> string(18) "healthy-vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(210) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(31) "Diet-friendly meat-free feasts." ["parent"]=> int(0) ["count"]=> int(184) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15593 (11) { ["term_id"]=> int(12532) ["name"]=> string(5) "Iftar" ["slug"]=> string(5) "iftar" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(12532) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(28) "A selection of Iftar recipes" ["parent"]=> int(0) ["count"]=> int(78) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#15602 (11) { ["term_id"]=> int(120) ["name"]=> string(17) "Modern vegetarian" ["slug"]=> string(17) "modern-vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(120) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Veggie recipes for the whole family" ["parent"]=> int(0) ["count"]=> int(151) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#15597 (11) { ["term_id"]=> int(905) ["name"]=> string(6) "Picnic" ["slug"]=> string(6) "picnic" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(905) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(46) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#15596 (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)#15515 (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)#15550 (11) { ["term_id"]=> int(178) ["name"]=> string(6) "Snacks" ["slug"]=> string(6) "snacks" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(178) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(68) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [11]=> object(WP_Term)#15615 (11) { ["term_id"]=> int(413) ["name"]=> string(10) "Vegetarian" ["slug"]=> string(10) "vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(413) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(43) "Meat-free recipes for entertaining and more" ["parent"]=> int(0) ["count"]=> int(555) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [12]=> object(WP_Term)#15577 (11) { ["term_id"]=> int(26) ["name"]=> string(15) "Vegetarian kids" ["slug"]=> string(15) "vegetarian-kids" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(26) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(78) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [13]=> object(WP_Term)#15337 (11) { ["term_id"]=> int(12) ["name"]=> string(16) "Vegetarian party" ["slug"]=> string(16) "vegetarian-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(12) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Impress with an imaginative spread." ["parent"]=> int(0) ["count"]=> int(119) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [14]=> object(WP_Term)#15590 (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" } }
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 ( 1103, 3542062101253212090512531421784132612896 ) OR rd.ingredients LIKE '%Baking%' OR rd.ingredients LIKE '% Cheese and onion%' OR rd.ingredients LIKE '% Family food%' OR rd.ingredients LIKE '% Pasties%' OR rd.ingredients LIKE '% PASTRY%' OR rd.ingredients LIKE '% Picnic%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 24981 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16