A little recursion for you
Category:
HungryButts
Posted by:
Lady_Parrot
More photos from HungryButts
SELECT *
FROM gallery2
WHERE topic_id="1605268"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1512502"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1125589"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1074064"
UNION
SELECT *
FROM gallery2
WHERE topic_id="621851"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1075701"
UNION
SELECT *
FROM gallery2
WHERE topic_id="139586"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1235496"
UNION
SELECT *
FROM gallery2
WHERE topic_id="804917"
UNION
SELECT *
FROM gallery2
WHERE topic_id="752543"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1013133"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1167656"
UNION
SELECT *
FROM gallery2
WHERE topic_id="702552"
UNION
SELECT *
FROM gallery2
WHERE topic_id="702000"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1434085"
UNION
SELECT *
FROM gallery2
WHERE topic_id="161581"