select created_at as time,id
from table
where created_at between FROM_UNIXTIME(1542196778) and FROM_UNIXTIME(1545893190)
ORDER BY created_at;
to powinno działać
select created_at as time,id
from table
where created_at between FROM_UNIXTIME(1542196778) and FROM_UNIXTIME(1545893190)
ORDER BY created_at;
to powinno działać