How can I improve this query:
SELECT * FROM forum_thread WHERE
thread_id not in (
SELECT auth_id FROM forum_auth WHERE auth_group_id=1 and auth_type=2 and auth_visible=0
)
and thread_id in (
SELECT thread_id FROM forum_thread WHERE
category_id NOT IN (
SELECT auth_id FROM forum_auth WHERE auth_group_id=1 and auth_visible=0 and auth_type=1
)
)
ORDER BY last_post_id DESC limit 30
Thanks for answer