POST-ID:21157 array(6) { [0]=> object(WP_Term)#15337 (11) { ["term_id"]=> int(64) ["name"]=> string(17) "Cheap cut recipes" ["slug"]=> string(9) "cheap-cut" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(64) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(99) "Discover a variety of recipes using cheap cuts of meat that are both budget-friendly and delicious." ["parent"]=> int(0) ["count"]=> int(21) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16213 (11) { ["term_id"]=> int(103) ["name"]=> string(20) "Child-friendly meals" ["slug"]=> string(14) "little-nibbles" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(103) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(21) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15445 (11) { ["term_id"]=> int(116) ["name"]=> string(14) "Child’s play" ["slug"]=> string(12) "child-s-play" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(116) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(6) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#15406 (11) { ["term_id"]=> int(32) ["name"]=> string(17) "Easy entertaining" ["slug"]=> string(17) "easy-entertaining" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(32) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(245) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15342 (11) { ["term_id"]=> int(346) ["name"]=> string(24) "Five ingredients or less" ["slug"]=> string(24) "five-ingredients-or-less" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(346) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Quick fix recipes with minimal shopping fuss." ["parent"]=> int(0) ["count"]=> int(64) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#15427 (11) { ["term_id"]=> int(348) ["name"]=> string(9) "Leftovers" ["slug"]=> string(9) "leftovers" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(348) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(40) "How to use up those leftover ingredients" ["parent"]=> int(0) ["count"]=> int(69) ["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 ( 64, 10311632346348 ) OR rd.ingredients LIKE '%Condiments%' OR rd.ingredients LIKE '% Jam%' OR rd.ingredients LIKE '% Jelly%' OR rd.ingredients LIKE '% Preserve%' OR rd.ingredients LIKE '% Quince%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 21157 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16