如果我这样写查询是否很好:-(请参阅where条件中的查询)
SELECT distinct(id) "idea_id"
FROM ideas
WHERE deleted_by_user = 0 AND moderation_flag = 1 AND
user_id in (select id
from users
where confirm like "yes")
ORDER BY time_of_creation DESC
让我知道这个查询是否有问题:thanx提前..