I know this question comes up often, but today I can\'t find the answer I\'m looking for. I have a table with this schema.
CREATE TABLE `comments` ( `id`
Are you looking for
SELECT p.id, child.* FROM comments p INNER JOIN comments child ON (child.parent_id = p.id) WHERE ....
UPDATE Or LEFT JOIN if you want to see rows with no parents
LEFT JOIN