Is this what you need?
Category:
footjobs
Posted by:
Kalyanubis
More photos from Footjobs
SELECT *
FROM gallery2
WHERE topic_id="1236221"
UNION
SELECT *
FROM gallery2
WHERE topic_id="614652"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1051162"
UNION
SELECT *
FROM gallery2
WHERE topic_id="427933"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1732072"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1348492"
UNION
SELECT *
FROM gallery2
WHERE topic_id="844680"
UNION
SELECT *
FROM gallery2
WHERE topic_id="346917"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1715214"
UNION
SELECT *
FROM gallery2
WHERE topic_id="824678"
UNION
SELECT *
FROM gallery2
WHERE topic_id="496109"
UNION
SELECT *
FROM gallery2
WHERE topic_id="451414"
UNION
SELECT *
FROM gallery2
WHERE topic_id="395406"
UNION
SELECT *
FROM gallery2
WHERE topic_id="159785"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1007682"
UNION
SELECT *
FROM gallery2
WHERE topic_id="647170"