Is this what you need?
Category:
footjobs
Posted by:
Kalyanubis
More photos from Footjobs
SELECT *
FROM gallery2
WHERE topic_id="1370438"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1330850"
UNION
SELECT *
FROM gallery2
WHERE topic_id="102"
UNION
SELECT *
FROM gallery2
WHERE topic_id="91837"
UNION
SELECT *
FROM gallery2
WHERE topic_id="313927"
UNION
SELECT *
FROM gallery2
WHERE topic_id="4531"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1033805"
UNION
SELECT *
FROM gallery2
WHERE topic_id="207733"
UNION
SELECT *
FROM gallery2
WHERE topic_id="187105"
UNION
SELECT *
FROM gallery2
WHERE topic_id="948049"
UNION
SELECT *
FROM gallery2
WHERE topic_id="279815"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1029054"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1820531"
UNION
SELECT *
FROM gallery2
WHERE topic_id="279691"
UNION
SELECT *
FROM gallery2
WHERE topic_id="583512"
UNION
SELECT *
FROM gallery2
WHERE topic_id="24137"