select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='1' group by RIGHT(`rand_value`,2)
select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='3' group by RIGHT(`rand_value`,2)
select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='4' group by RIGHT(`rand_value`,2)
select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='5' group by RIGHT(`rand_value`,2)
select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='6' group by RIGHT(`rand_value`,2)
select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='7' group by RIGHT(`rand_value`,2)
select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='8' group by RIGHT(`rand_value`,2)
select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='9' group by RIGHT(`rand_value`,2)
select post_title,post_name,term_taxonomy_id from wp_posts,wp_term_relationships where object_id=ID and term_taxonomy_id='10' group by RIGHT(`rand_value`,2)