I have the following Select in MySQL:
$sql = SELECT * FROM table_1 WHERE rank = 2 AND id IN(2, 5, 8) ;
But the IDs (2, 5, 8, ...) must be from a...
You can use multiple Select statements in the same SQL query.
Try this query, using a sub-select that selects the IDs.
$sql = SELECT * FROM table_1...