SP
Size: a a a
SP
SP
p
SP
SP
SP
SP
SP
∅ч
id
FROM (SELECT posts
.id
, ROW_NUMBER() OVER(PARTITION BY posts
.parent_id
ORDER BY posts
.id
DESC) AS rn
FROM posts
WHERE parent_id
IN (", &digits_str, ")) AS A
WHERE A
.rn
<= :count) AS S
INNER JOIN posts
ON posts
.id
=S
.id
" ].concat();∅ч
∅ч
∅ч
p
∅ч
∅ч
SP
∅ч
p