Simplify a mysql query please -


i have mysql query :

select p.* posts p  (     p.userid in      (         select blogid abos userid=11     )     or p.userid = 11 )  , not exists (     select null posts_denied r      r.post_id = p.id , r.userid = 11 ) order p.id desc limit 5 

i remove "where in" clause... how can find best performance query syntax please?

select distinct p.* posts p join abos on p.userid = a.blogid or p.userid = 11 left join posts_denied r on r.post_id = p.id , r.userid = 11 (a.userid = 11 or p.userid = 11)   , r.post_id null order p.id desc limit 5 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -