do you want it like this?
Category:
PantiesToTheSide
Posted by:
Lilithscarletred
More photos from PantiesToTheSide
SELECT *
FROM gallery2
WHERE topic_id="599327"
UNION
SELECT *
FROM gallery2
WHERE topic_id="442740"
UNION
SELECT *
FROM gallery2
WHERE topic_id="929085"
UNION
SELECT *
FROM gallery2
WHERE topic_id="822804"
UNION
SELECT *
FROM gallery2
WHERE topic_id="535186"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1549212"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1093282"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1108922"
UNION
SELECT *
FROM gallery2
WHERE topic_id="431774"
UNION
SELECT *
FROM gallery2
WHERE topic_id="86786"
UNION
SELECT *
FROM gallery2
WHERE topic_id="521623"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1537626"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1032875"
UNION
SELECT *
FROM gallery2
WHERE topic_id="630145"
UNION
SELECT *
FROM gallery2
WHERE topic_id="788847"
UNION
SELECT *
FROM gallery2
WHERE topic_id="717895"