I know you want a view like this
Category:
CosplayBoobs
Posted by:
MwyNyamCwota
More photos from CosplayBoobs
SELECT *
FROM gallery2
WHERE topic_id="594109"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1781487"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1097754"
UNION
SELECT *
FROM gallery2
WHERE topic_id="128517"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1282276"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1103553"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1162616"
UNION
SELECT *
FROM gallery2
WHERE topic_id="50940"
UNION
SELECT *
FROM gallery2
WHERE topic_id="312346"
UNION
SELECT *
FROM gallery2
WHERE topic_id="380150"
UNION
SELECT *
FROM gallery2
WHERE topic_id="54911"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1355723"
UNION
SELECT *
FROM gallery2
WHERE topic_id="210846"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1811363"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1071202"
UNION
SELECT *
FROM gallery2
WHERE topic_id="298434"