I want to have this kind of relationship
Category:
sissycaptions
Posted by:
Paky196
More photos from Sissycaptions
SELECT *
FROM gallery2
WHERE topic_id="1190312"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1690345"
UNION
SELECT *
FROM gallery2
WHERE topic_id="649925"
UNION
SELECT *
FROM gallery2
WHERE topic_id="401630"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1443246"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1580247"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1592228"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1460127"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1543857"
UNION
SELECT *
FROM gallery2
WHERE topic_id="381015"
UNION
SELECT *
FROM gallery2
WHERE topic_id="218065"
UNION
SELECT *
FROM gallery2
WHERE topic_id="993598"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1297213"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1042827"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1554139"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1367681"