I want to have this kind of relationship
Category:
sissycaptions
Posted by:
Paky196
More photos from Sissycaptions
SELECT *
FROM gallery2
WHERE topic_id="1510761"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1131217"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1070379"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1306274"
UNION
SELECT *
FROM gallery2
WHERE topic_id="986412"
UNION
SELECT *
FROM gallery2
WHERE topic_id="753804"
UNION
SELECT *
FROM gallery2
WHERE topic_id="976318"
UNION
SELECT *
FROM gallery2
WHERE topic_id="753664"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1592965"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1385903"
UNION
SELECT *
FROM gallery2
WHERE topic_id="542911"
UNION
SELECT *
FROM gallery2
WHERE topic_id="569209"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1022916"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1821920"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1222018"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1693139"