SELECT * FROM table WHERE (id) IN ( SELECT MAX(id) FROM table WHERE col_1 = 1 GROUP BY col_1 ) AND col_1 = 1 ORDER BY id DESC;
SELECT * FROM table WHERE (id) IN ( SELECT MAX(id) FROM table WHERE col_1 = 1 GROUP BY col_1 ) AND col_1 = 1 ORDER BY id DESC;