timestamp - mySQL - I want to select only the 75 most recent posts unless a column deems the post 'permanent' -


here have tried:

select *   posts (   post != ''   , timestamp >= (     select `posts`.`timestamp`     posts     post != ''     order timestamp desc     limit 1     offset 75 ) ) or (   post != ''   , authorization = 'permanent' ) order `posts`.`id` asc  

the first selects 75 recent, code ignores ones supposed permanent. don't know why. in advance.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -