There is such a request:
SELECT * FROM album, competition WHERE album.time_ >= competition.dateStart AND album.time_ <= competition.dateEnd AND competition.end_ = 0 ORDER BY album.rating DESC LIMIT 3 The album and competition table have the same id column. How to get the id the album table?
I tried this:
$result['album']['id']; So:
$result[0]['id']; And even so:
$result['album.id']; But it's not right. Tell me how?
select album.id as album_id from ...and in php it will be named album_id - Mike