19 lines
371 B
MySQL
19 lines
371 B
MySQL
|
SELECT
|
||
|
`start_at`,
|
||
|
`artist`,
|
||
|
`title`,
|
||
|
`listeners`,
|
||
|
`max_listeners`
|
||
|
FROM
|
||
|
(SELECT
|
||
|
`start_at`,
|
||
|
`artist`,
|
||
|
`title`,
|
||
|
`listeners`,
|
||
|
`max_listeners`
|
||
|
FROM `history`
|
||
|
LEFT JOIN `song`
|
||
|
ON `song`.`song_id` = `history`.`song_id`
|
||
|
ORDER BY `start_at` DESC
|
||
|
LIMIT ? )
|
||
|
ORDER BY `start_at` ASC;
|