is this how you want it
Category:
SpreadEm
Posted by:
evoljasmine
More photos from SpreadEm
SELECT *
FROM gallery2
WHERE topic_id="487162"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1382775"
UNION
SELECT *
FROM gallery2
WHERE topic_id="733675"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1507422"
UNION
SELECT *
FROM gallery2
WHERE topic_id="220213"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1287929"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1285020"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1699732"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1177162"
UNION
SELECT *
FROM gallery2
WHERE topic_id="515517"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1140033"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1250207"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1655427"
UNION
SELECT *
FROM gallery2
WHERE topic_id="25609"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1629930"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1312185"