POST-ID:27379 array(14) { [0]=> object(WP_Term)#15575 (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(147) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#14882 (11) { ["term_id"]=> int(351) ["name"]=> string(12) "Bank Holiday" ["slug"]=> string(12) "bank-holiday" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(351) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(43) "Light and lazy dishes, for feeding a crowd." ["parent"]=> int(0) ["count"]=> int(40) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#14881 (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(0) "" ["parent"]=> int(0) ["count"]=> int(111) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#14880 (11) { ["term_id"]=> int(102) ["name"]=> string(14) "Barbecue bites" ["slug"]=> string(14) "barbecue-bites" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(102) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(55) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#14879 (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(52) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#14878 (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(31) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#14877 (11) { ["term_id"]=> int(31) ["name"]=> string(9) "Big match" ["slug"]=> string(9) "big-match" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(31) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(43) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [7]=> object(WP_Term)#14876 (11) { ["term_id"]=> int(89) ["name"]=> string(18) "Boxing Day recipes" ["slug"]=> string(10) "boxing-day" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(89) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(50) "Use up leftovers or put on a show-stopping spread." ["parent"]=> int(0) ["count"]=> int(73) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [8]=> object(WP_Term)#14875 (11) { ["term_id"]=> int(80) ["name"]=> string(15) "Budget beauties" ["slug"]=> string(15) "budget-beauties" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(80) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(49) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [9]=> object(WP_Term)#14874 (11) { ["term_id"]=> int(112) ["name"]=> string(12) "Budget meals" ["slug"]=> string(12) "budget-meals" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(112) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(61) "Thrifty recipes to help you keep cooking costs down." ["parent"]=> int(0) ["count"]=> int(57) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [10]=> object(WP_Term)#14873 (11) { ["term_id"]=> int(235) ["name"]=> string(14) "Budget recipes" ["slug"]=> string(6) "budget" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(235) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(66) "Cheaper recipes and frugal bites to save you money in the kitchen." ["parent"]=> int(0) ["count"]=> int(120) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [11]=> object(WP_Term)#14861 (11) { ["term_id"]=> int(311) ["name"]=> string(6) "Burger" ["slug"]=> string(6) "burger" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(311) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(53) "Everything you'll ever need to put inside a bun." ["parent"]=> int(0) ["count"]=> int(82) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [12]=> object(WP_Term)#15686 (11) { ["term_id"]=> int(98) ["name"]=> string(15) "Camping recipes" ["slug"]=> string(7) "camping" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(98) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(25) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [13]=> object(WP_Term)#14900 (11) { ["term_id"]=> int(896) ["name"]=> string(7) "Weekend" ["slug"]=> string(7) "weekend" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(896) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(0) "" ["parent"]=> int(0) ["count"]=> int(98) ["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, 3519910242214231898011223531198896 ) OR rd.ingredients LIKE '%Barbecue%' OR rd.ingredients LIKE '% Burgers%' OR rd.ingredients LIKE '% Lamb%' OR rd.ingredients LIKE '% Moroccan%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 27379 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16