POST-ID:41557 array(6) { [0]=> object(WP_Term)#20465 (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)#20382 (11) { ["term_id"]=> int(99) ["name"]=> string(8) "Barbecue" ["slug"]=> string(8) "barbecue" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(99) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(143) "Cater for a crowd come rain or shine with our sizzling selection of barbecue recipes, including burgers, kebabs, veggie dishes, sauces and more" ["parent"]=> int(0) ["count"]=> int(116) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#20462 (11) { ["term_id"]=> int(216) ["name"]=> string(18) "Low-calorie dinner" ["slug"]=> string(18) "low-calorie-dinner" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(216) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(41) "Delicious dinners all under 400 calories." ["parent"]=> int(0) ["count"]=> int(87) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#20432 (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(210) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#20466 (11) { ["term_id"]=> int(11592) ["name"]=> string(5) "prawn" ["slug"]=> string(5) "prawn" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(11592) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(44) ["count"]=> int(16) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#20459 (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" } }
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, 992163601159214120 ) OR rd.ingredients LIKE '%Avocado%' OR rd.ingredients LIKE '% Barbecue%' OR rd.ingredients LIKE '% Jalapeno%' OR rd.ingredients LIKE '% Prawns%' OR rd.ingredients LIKE '% Salad%' OR rd.ingredients LIKE '% Summer salad%' OR rd.ingredients LIKE '% Sweetcorn%' OR rd.ingredients LIKE '% Tex-mex%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 41557 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16