POST-ID:46633 array(5) { [0]=> object(WP_Term)#15507 (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(161) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#15593 (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(514) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#15555 (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)#15512 (11) { ["term_id"]=> int(38) ["name"]=> string(19) "Gluten free Recipes" ["slug"]=> string(11) "gluten-free" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(38) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(52) "Delicious celiac-friendly recipes for every occasion" ["parent"]=> int(0) ["count"]=> int(68) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#15574 (11) { ["term_id"]=> int(212) ["name"]=> string(12) "High-protein" ["slug"]=> string(12) "high-protein" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(212) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(98) "These high-protein picks are perfect for those who want to boost their intake from time to time..." ["parent"]=> int(0) ["count"]=> int(39) ["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, 409438212 ) OR rd.ingredients LIKE '%Cashew%' OR rd.ingredients LIKE '% cashew nut%' OR rd.ingredients LIKE '% Chicken%' OR rd.ingredients LIKE '% Noodles%' OR rd.ingredients LIKE '% Quick dinners%' OR rd.ingredients LIKE '% Red pepper%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 46633 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16