I came across a perfect solution to a problem
Category:
PornhubComments
Posted by:
GreenSaRed
More photos from PornhubComments
SELECT *
FROM gallery2
WHERE topic_id="955607"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1481717"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1586746"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1049222"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1274213"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1133279"
UNION
SELECT *
FROM gallery2
WHERE topic_id="222589"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1759281"
UNION
SELECT *
FROM gallery2
WHERE topic_id="811915"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1545221"
UNION
SELECT *
FROM gallery2
WHERE topic_id="786017"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1710195"
UNION
SELECT *
FROM gallery2
WHERE topic_id="935006"
UNION
SELECT *
FROM gallery2
WHERE topic_id="16205"
UNION
SELECT *
FROM gallery2
WHERE topic_id="1347634"
UNION
SELECT *
FROM gallery2
WHERE topic_id="230820"