I know you want a view like this
Category:
Stacked
Posted by:
MwyNyamCwota
More photos from Stacked
SELECT *
FROM gallery2
WHERE topic_id="479445"
UNION
SELECT *
FROM gallery2
WHERE topic_id="120853"
UNION
SELECT *
FROM gallery2
WHERE topic_id="545276"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1803624"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1418923"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1136134"
UNION
SELECT *
FROM gallery2
WHERE topic_id="789946"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1533182"
UNION
SELECT *
FROM gallery2
WHERE topic_id="955133"
UNION
SELECT *
FROM gallery2
WHERE topic_id="261431"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1210455"
UNION
SELECT *
FROM gallery2
WHERE topic_id="934392"
UNION
SELECT *
FROM gallery2
WHERE topic_id="36816"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1779510"
UNION
SELECT *
FROM gallery2
WHERE topic_id="209350"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1495713"