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

matlab - How to equate a structure array to structure array -

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -