POST-ID:2450 array(7) { [0]=> object(WP_Term)#16262 (11) { ["term_id"]=> int(300) ["name"]=> string(6) "Indian" ["slug"]=> string(6) "indian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(300) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(45) "Spicy Eastern recipes such as masala chicken." ["parent"]=> int(0) ["count"]=> int(139) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [1]=> object(WP_Term)#16278 (11) { ["term_id"]=> int(165) ["name"]=> string(14) "Meat-free fare" ["slug"]=> string(14) "meat-free-fare" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(165) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(79) "From vegan to vegetarian dishes, we've got some delicious meat-free dishes" ["parent"]=> int(0) ["count"]=> int(44) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [2]=> object(WP_Term)#16157 (11) { ["term_id"]=> int(413) ["name"]=> string(10) "Vegetarian" ["slug"]=> string(10) "vegetarian" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(413) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(43) "Meat-free recipes for entertaining and more" ["parent"]=> int(0) ["count"]=> int(556) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [3]=> object(WP_Term)#16271 (11) { ["term_id"]=> int(13) ["name"]=> string(19) "Vegetarian barbecue" ["slug"]=> string(19) "vegetarian-barbecue" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(13) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(58) "Simple yet delicious recipes perfect for summer barbecues." ["parent"]=> int(0) ["count"]=> int(44) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [4]=> object(WP_Term)#16238 (11) { ["term_id"]=> int(82) ["name"]=> string(16) "Vegetarian curry" ["slug"]=> string(16) "vegetarian-curry" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(82) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(21) "From dhal to dopiaza." ["parent"]=> int(0) ["count"]=> int(34) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [5]=> object(WP_Term)#16175 (11) { ["term_id"]=> int(12) ["name"]=> string(16) "Vegetarian party" ["slug"]=> string(16) "vegetarian-party" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(12) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(35) "Impress with an imaginative spread." ["parent"]=> int(0) ["count"]=> int(119) ["filter"]=> string(3) "raw" ["term_order"]=> string(1) "0" } [6]=> object(WP_Term)#16258 (11) { ["term_id"]=> int(125) ["name"]=> string(14) "Veggie curries" ["slug"]=> string(14) "veggie-curries" ["term_group"]=> int(0) ["term_taxonomy_id"]=> int(125) ["taxonomy"]=> string(15) "bbc_collections" ["description"]=> string(117) "Indian cuisine is delicious and vegetarian-friendly, so ditch the pack of chicken and try one of our authentic ideas." ["parent"]=> int(0) ["count"]=> int(15) ["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 ( 300, 165413138212125 )) AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 2450 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16