POST-ID:42547 array(7) { [0]=> object(WP_Term)#16191 (11) { ["term_id"]=> int(169) ["name"]=> string(16) "200-400 calories" ["slug"]=> string(16) "200-400-calories" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(169) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(147) "Low in calories yet super-satisfying – these lighter recipes make the most of delicious ingredients. Discover salads, stir-fries, stews and more." ["parent"]=> int(0) ["count"]=> int(298) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16092 (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(531) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16976 (11) { ["term_id"]=> int(410) ["name"]=> string(19) "Easy but impressive" ["slug"]=> string(15) "easy-impressive" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(410) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(30) "Less stress, more seduction..." ["parent"]=> int(0) ["count"]=> int(304) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16211 (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(84) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16172 (11) { ["term_id"]=> int(215) ["name"]=> string(17) "Low-calorie lunch" ["slug"]=> string(17) "low-calorie-lunch" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(215) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(63) "Lunchbox favourites and weekend treats, all under 400 calories." ["parent"]=> int(0) ["count"]=> int(70) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16131 (11) { ["term_id"]=> int(39) ["name"]=> string(7) "Low-fat" ["slug"]=> string(7) "low-fat" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(39) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(48) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#16196 (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(134) ["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 ( 169, 40941021621539360 ) OR rd.ingredients LIKE '%Chickpea%' OR rd.ingredients LIKE '% Cod%' OR rd.ingredients LIKE '% Shallots%' OR rd.ingredients LIKE '% Spinach%' OR rd.ingredients LIKE '% Traybake%' OR rd.ingredients LIKE '% Turmeric%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 42547 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16