How does this work?
Category:
beach
Posted by:
Such-Spinach-2231
More photos from Beach
SELECT *
FROM gallery2
WHERE topic_id="1087748"
UNION
SELECT *
FROM gallery2
WHERE topic_id="308980"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1493178"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1769589"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1177148"
UNION
SELECT *
FROM gallery2
WHERE topic_id="248239"
UNION
SELECT *
FROM gallery2
WHERE topic_id="259040"
UNION
SELECT *
FROM gallery2
WHERE topic_id="823482"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1499332"
UNION
SELECT *
FROM gallery2
WHERE topic_id="194760"
UNION
SELECT *
FROM gallery2
WHERE topic_id="425429"
UNION
SELECT *
FROM gallery2
WHERE topic_id="53149"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1019478"
UNION
SELECT *
FROM gallery2
WHERE topic_id="948064"
UNION
SELECT *
FROM gallery2
WHERE topic_id="978361"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1123990"