I want to perform 'order by' and 'limit' to part of my select statement, that is, only the part that meets the first condition, so i want to achieve following:
select * from page where (type=6 order by edate limit 1) or (date > (UNIX_TIMESTAMP-8400));
However this is not accepted - any suggestions please??
Many thanks!
select * from page where (type=6 order by edate limit 1) or (date > (UNIX_TIMESTAMP-8400));
However this is not accepted - any suggestions please??
Many thanks!