2024-05-09 23:53:33 +04:00
|
|
|
SELECT
|
|
|
|
`start_at`,
|
|
|
|
`artist`,
|
|
|
|
`title`,
|
|
|
|
`listeners`,
|
2024-05-11 05:05:27 +04:00
|
|
|
`peak_listeners`
|
2024-05-09 23:53:33 +04:00
|
|
|
FROM
|
|
|
|
(SELECT
|
|
|
|
`start_at`,
|
|
|
|
`artist`,
|
|
|
|
`title`,
|
|
|
|
`listeners`,
|
2024-05-11 05:05:27 +04:00
|
|
|
`peak_listeners`
|
2024-05-09 23:53:33 +04:00
|
|
|
FROM `history`
|
|
|
|
LEFT JOIN `song`
|
|
|
|
ON `song`.`song_id` = `history`.`song_id`
|
|
|
|
ORDER BY `start_at` DESC
|
|
|
|
LIMIT ? )
|
|
|
|
ORDER BY `start_at` ASC;
|