|
|
@ -36,7 +36,9 @@ source hostImage : common |
|
|
|
SELECT hostImage.hostImageId, hostImage.rank, hostImage.uri, host.name, \ |
|
|
|
SELECT hostImage.hostImageId, hostImage.rank, hostImage.uri, host.name, \ |
|
|
|
(SELECT CONCAT_WS(' ', hostImageDescription.alt, hostImageDescription.title) \ |
|
|
|
(SELECT CONCAT_WS(' ', hostImageDescription.alt, hostImageDescription.title) \ |
|
|
|
FROM hostImageDescription \ |
|
|
|
FROM hostImageDescription \ |
|
|
|
WHERE hostImageDescription.hostImageId = hostImage.hostImageId ORDER BY hostImageDescription.timeAdded DESC LIMIT 1) AS imageDescription \ |
|
|
|
WHERE hostImageDescription.hostImageId = hostImage.hostImageId \ |
|
|
|
|
|
|
|
ORDER BY hostImageDescription.timeAdded \ |
|
|
|
|
|
|
|
DESC LIMIT 1) AS imageDescription \ |
|
|
|
FROM hostImage \ |
|
|
|
FROM hostImage \ |
|
|
|
JOIN host ON (host.hostId = hostImage.hostId) \ |
|
|
|
JOIN host ON (host.hostId = hostImage.hostId) \ |
|
|
|
WHERE host.status = '1' AND hostImage.httpCode = 200 AND hostImage.timeBanned IS NULL \ |
|
|
|
WHERE host.status = '1' AND hostImage.httpCode = 200 AND hostImage.timeBanned IS NULL \ |
|
|
|