mirror of
https://github.com/YGGverse/YGGo.git
synced 2025-02-03 18:35:04 +00:00
GROUP_CONCAT host image descriptions
This commit is contained in:
parent
0ffcee1efb
commit
e7c5e2ca9d
@ -34,11 +34,9 @@ source hostImage : common
|
|||||||
{
|
{
|
||||||
sql_query = \
|
sql_query = \
|
||||||
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 GROUP_CONCAT(CONCAT_WS(' ', hostImageDescription.alt, hostImageDescription.title)) \
|
||||||
FROM hostImageDescription \
|
FROM hostImageDescription \
|
||||||
WHERE hostImageDescription.hostImageId = hostImage.hostImageId \
|
WHERE hostImageDescription.hostImageId = hostImage.hostImageId) AS imageDescription \
|
||||||
ORDER BY hostImageDescription.timeUpdated DESC, 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 \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user