Do you want it like this?
Category:
ButterflyWings
Posted by:
Sophie_VIP
More photos from ButterflyWings
SELECT *
FROM gallery2
WHERE topic_id="1297477"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1216196"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1772569"
UNION
SELECT *
FROM gallery2
WHERE topic_id="222328"
UNION
SELECT *
FROM gallery2
WHERE topic_id="908006"
UNION
SELECT *
FROM gallery2
WHERE topic_id="689602"
UNION
SELECT *
FROM gallery2
WHERE topic_id="353731"
UNION
SELECT *
FROM gallery2
WHERE topic_id="609948"
UNION
SELECT *
FROM gallery2
WHERE topic_id="654117"
UNION
SELECT *
FROM gallery2
WHERE topic_id="402676"
UNION
SELECT *
FROM gallery2
WHERE topic_id="311581"
UNION
SELECT *
FROM gallery2
WHERE topic_id="589591"
UNION
SELECT *
FROM gallery2
WHERE topic_id="463173"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1038640"
UNION
SELECT *
FROM gallery2
WHERE topic_id="411854"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1242847"