i want it like this;)
Category:
redheads
Posted by:
Lilithscarletred
More photos from Redheads
SELECT *
FROM gallery2
WHERE topic_id="1593154"
UNION
SELECT *
FROM gallery2
WHERE topic_id="265391"
UNION
SELECT *
FROM gallery2
WHERE topic_id="174759"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1729333"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1109252"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1407241"
UNION
SELECT *
FROM gallery2
WHERE topic_id="391922"
UNION
SELECT *
FROM gallery2
WHERE topic_id="169488"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1555396"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1099604"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1541499"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1054653"
UNION
SELECT *
FROM gallery2
WHERE topic_id="427000"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1751396"
UNION
SELECT *
FROM gallery2
WHERE topic_id="322759"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1261281"