Why don't you go ahead and clean up your mess?
More photos from FootFetish
SELECT *
FROM gallery2
WHERE topic_id="1607195"
UNION
SELECT *
FROM gallery2
WHERE topic_id="310088"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1160649"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1390066"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1689167"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1350548"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1212133"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1052631"
UNION
SELECT *
FROM gallery2
WHERE topic_id="346207"
UNION
SELECT *
FROM gallery2
WHERE topic_id="46104"
UNION
SELECT *
FROM gallery2
WHERE topic_id="562206"
UNION
SELECT *
FROM gallery2
WHERE topic_id="608853"
UNION
SELECT *
FROM gallery2
WHERE topic_id="529278"
UNION
SELECT *
FROM gallery2
WHERE topic_id="483192"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1342506"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1728088"