POST-ID:21137
array(7) {
[0]=>
object(WP_Term)#15801 (11) {
["term_id"]=>
int(61)
["name"]=>
string(15) "60 minute bakes"
["slug"]=>
string(15) "60-minute-bakes"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(61)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(41) "These quick bakes are fuss-free yet fancy"
["parent"]=>
int(0)
["count"]=>
int(52)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[1]=>
object(WP_Term)#15718 (11) {
["term_id"]=>
int(35)
["name"]=>
string(21) "Afternoon tea recipes"
["slug"]=>
string(21) "afternoon-tea-recipes"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(35)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(61) "Host a fabulous afternoon tea with family or friends"
["parent"]=>
int(0)
["count"]=>
int(105)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[2]=>
object(WP_Term)#16591 (11) {
["term_id"]=>
int(378)
["name"]=>
string(16) "Celebration cake"
["slug"]=>
string(16) "celebration-cake"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(378)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(34) "Show-stopping cakes for occasions."
["parent"]=>
int(0)
["count"]=>
int(71)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[3]=>
object(WP_Term)#15816 (11) {
["term_id"]=>
int(241)
["name"]=>
string(20) "Festive cake recipes"
["slug"]=>
string(12) "festive-cake"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(241)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(25) "Festive and fruity cakes."
["parent"]=>
int(0)
["count"]=>
int(60)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[4]=>
object(WP_Term)#15824 (11) {
["term_id"]=>
int(242)
["name"]=>
string(23) "Festive dessert recipes"
["slug"]=>
string(15) "festive-dessert"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(242)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(160) "Try our selection of traditional and alternative sweet treats for the festive season. We've got Christmas pudding, mince pies, trifle, cheesecake and more."
["parent"]=>
int(0)
["count"]=>
int(105)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[5]=>
object(WP_Term)#15719 (11) {
["term_id"]=>
int(97)
["name"]=>
string(14) "Healthy treats"
["slug"]=>
string(14) "healthy-treats"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(97)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(102) "You don't have to go without - just opt for these lighter choices for your favourite indulgences!"
["parent"]=>
int(0)
["count"]=>
int(25)
["filter"]=>
string(3) "raw"
["term_order"]=>
string(1) "0"
}
[6]=>
object(WP_Term)#15796 (11) {
["term_id"]=>
int(399)
["name"]=>
string(11) "Quick cakes"
["slug"]=>
string(10) "quick-cake"
["term_group"]=>
int(0)
["term_taxonomy_id"]=>
int(399)
["taxonomy"]=>
string(15) "bbc_collections"
["description"]=>
string(31) "Simple and speedy bakes to try."
["parent"]=>
int(0)
["count"]=>
int(26)
["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 ( 61, 3537824124297399 ) OR rd.ingredients LIKE '%Christmas%' OR rd.ingredients LIKE '% Festive baking%' OR rd.ingredients LIKE '% Ginger%' OR rd.ingredients LIKE '% Ginger cake%' OR rd.ingredients LIKE '% Honey%' OR rd.ingredients LIKE '% Loaf cake%') AND p.post_type = 'bbc_recipes' AND (p.post_status = 'publish' OR p.post_status = 'private') AND p.ID <> 21137 GROUP BY p.ID ORDER BY p.post_date DESC LIMIT 0, 16