do you want it like this?
Category:
redhead
Posted by:
Lilithscarletred
More photos from Redhead
SELECT *
FROM gallery2
WHERE topic_id="1042711"
UNION
SELECT *
FROM gallery2
WHERE topic_id="326090"
UNION
SELECT *
FROM gallery2
WHERE topic_id="876674"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1170435"
UNION
SELECT *
FROM gallery2
WHERE topic_id="263465"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1505876"
UNION
SELECT *
FROM gallery2
WHERE topic_id="696209"
UNION
SELECT *
FROM gallery2
WHERE topic_id="829271"
UNION
SELECT *
FROM gallery2
WHERE topic_id="909485"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1372942"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1696276"
UNION
SELECT *
FROM gallery2
WHERE topic_id="245762"
UNION
SELECT *
FROM gallery2
WHERE topic_id="25103"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1147514"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1607496"
UNION
SELECT *
FROM gallery2
WHERE topic_id="77149"