393 | | $query = 'SELECT music_songs.*, SEC_TO_TIME(music_songs.length/1000) AS length, artist_name '. |
394 | | 'FROM music_songs '. |
395 | | 'LEFT JOIN music_artists ON music_songs.artist_id=music_artists.artist_id '. |
396 | | 'WHERE album_id='.$sql_itemid.' '. |
397 | | 'ORDER BY track'; |
| 394 | $query = 'SELECT ms.song_id, ms.track, ms.name, ms.length, ms.numplays, '. |
| 395 | 'SEC_TO_TIME(ms.length/1000) AS length, artist_name '. |
| 396 | 'FROM music_songs AS ms '. |
| 397 | 'LEFT JOIN music_artists ON ms.artist_id=music_artists.artist_id '. |
| 398 | 'WHERE ms.album_id='.$sql_itemid.' '. |
| 399 | 'ORDER BY ms.track'; |
418 | | $query = 'SELECT music_songs.*, music_artists.artist_name, music_genres.genre '. |
419 | | 'FROM music_songs '. |
420 | | 'LEFT JOIN music_artists ON music_songs.artist_id=music_artists.artist_id '. |
421 | | 'LEFT JOIN music_genres ON music_songs.genre_id=music_genres.genre_id '. |
422 | | 'WHERE genre='.$sql_itemid.';'; |
| 420 | $query = 'SELECT ms.song_id, ms.name, ms.length, ms.numplays, '. |
| 421 | 'music_artists.artist_name, music_genres.genre '. |
| 422 | 'FROM music_songs AS ms '. |
| 423 | 'LEFT JOIN music_artists ON ms.artist_id=music_artists.artist_id '. |
| 424 | 'LEFT JOIN music_genres ON ms.genre_id=music_genres.genre_id '. |
| 425 | 'WHERE genre='.utf8_encode($sql_itemid).';'; |
455 | | $query = 'SELECT music_songs.*, SEC_TO_TIME(music_songs.length/1000) AS length, music_artists.artist_name, track, music_albums.album_name '. |
456 | | 'FROM music_songs '. |
457 | | 'LEFT JOIN music_artists ON music_songs.artist_id=music_artists.artist_id '. |
458 | | 'LEFT JOIN music_albums ON music_songs.album_id=music_albums.album_id '. |
459 | | 'WHERE music_songs.artist_id='.$sql_itemid.';'; |
| 458 | $query = 'SELECT ms.song_id, ms.track, ms.name, ms.length, ms.numplays, '. |
| 459 | 'SEC_TO_TIME(ms.length/1000) AS length, music_artists.artist_name, track, music_albums.album_name '. |
| 460 | 'FROM music_songs AS ms '. |
| 461 | 'LEFT JOIN music_artists ON ms.artist_id=music_artists.artist_id '. |
| 462 | 'LEFT JOIN music_albums ON ms.album_id=music_albums.album_id '. |
| 463 | 'WHERE ms.artist_id='.$sql_itemid.';'; |