POST-ID:38734 array(6) { [0]=> object(WP_Term)#16991 (11) { ["term_id"]=> int(422) ["name"]=> string(10) "BBQ dishes" ["slug"]=> string(10) "bbq-dishes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(422) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(83) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#17025 (11) { ["term_id"]=> int(142) ["name"]=> string(7) "BBQ fun" ["slug"]=> string(24) "barbecue-or-oven-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(142) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(40) "Cater for your crowd come rain or shine." ["parent"]=> int(0) ["count"]=> int(44) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#17112 (11) { ["term_id"]=> int(14078) ["name"]=> string(16) "BBQ pork recipes" ["slug"]=> string(16) "bbq-pork-recipes" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14078) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(200) "Chargrill sausages, pork chops, ribs and kebabs to perfection or load up some buns with melt-in-the mouth pulled pork. These BBQ pork recipes are sure to please everyone – sticky fingers are a must!" ["parent"]=> int(0) ["count"]=> int(11) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#17073 (11) { ["term_id"]=> int(409) ["name"]=> string(4) "Easy" ["slug"]=> string(4) "easy" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(409) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(55) "Keep it easy with these simple but super-tasty recipes." ["parent"]=> int(0) ["count"]=> int(570) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#17030 (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(338) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#17092 (11) { ["term_id"]=> int(14090) ["name"]=> string(31) "Healthy recipes for weight loss" ["slug"]=> string(31) "healthy-recipes-for-weight-loss" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(14090) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(205) "Eating well while losing weight is easier than you think. Discover our collection of nutritious, low-calorie meals, including lighter lunch ideas and healthy yet filling dinners—all 500 calories or less." ["parent"]=> int(0) ["count"]=> int(38) ["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 ( 422, 14214078409414090 ) OR rd.ingredients LIKE '%Easy%' OR rd.ingredients LIKE '% Esther Clark%' OR rd.ingredients LIKE '% Folate%' OR rd.ingredients LIKE '% Healthy%' OR rd.ingredients LIKE '% healthy barbecue%' OR rd.ingredients LIKE '% Healthy pork recipe%' OR rd.ingredients LIKE '% healthy summer recipe%' OR rd.ingredients LIKE '% high protein recipe%' OR rd.ingredients LIKE '% keto recipe%' OR rd.ingredients LIKE '% low carb recipe%' OR rd.ingredients LIKE '% Midweek meal%' OR rd.ingredients LIKE '% Pork%' OR rd.ingredients LIKE '% Pork recipe%' OR rd.ingredients LIKE '% soulaki%' OR rd.ingredients LIKE '% Vitamin c%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 38734 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16