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
Post a Comment