I want to have this kind of relationship
Category:
sissycaptions
Posted by:
Paky196
More photos from Sissycaptions
SELECT *
FROM gallery2
WHERE topic_id="1706767"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1426874"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1014256"
UNION
SELECT *
FROM gallery2
WHERE topic_id="851377"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1403156"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1754280"
UNION
SELECT *
FROM gallery2
WHERE topic_id="649532"
UNION
SELECT *
FROM gallery2
WHERE topic_id="414801"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1226296"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1241712"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1520276"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1634025"
UNION
SELECT *
FROM gallery2
WHERE topic_id="297643"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1651453"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1149125"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1646230"