Is something like this okay?
Category:
hangers
Posted by:
cherrybb45
More photos from Hangers
SELECT *
FROM gallery2
WHERE topic_id="1651207"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1676176"
UNION
SELECT *
FROM gallery2
WHERE topic_id="781852"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1057164"
UNION
SELECT *
FROM gallery2
WHERE topic_id="19689"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1319510"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1553972"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1678774"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1232180"
UNION
SELECT *
FROM gallery2
WHERE topic_id="604487"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1460041"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1442111"
UNION
SELECT *
FROM gallery2
WHERE topic_id="917861"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1217836"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1303913"
UNION
SELECT *
FROM gallery2
WHERE topic_id="524110"