I have a MySQL query :
SELECT p.* FROM posts p
WHERE
(
p.userid in
(
select blogid from abos where userid=11
)
OR p.userid = 11
)
AND NOT EXISTS
(
SELECT null FROM posts_denied r
WHERE r.post_id = p.id AND r.userid = 11
)
order by p.id DESC limit 5
I would like to remove the "where in" clause... How can I find the best performance query syntax please?