you are right, my bad
$result = mysql_query("SELECT * FROM table WHERE cat = 'business' AND valid = '1' ORDER BY some_field");
while ($row = mysql_fetch_assoc($result)) {$array[] = $row['id'];}
$result = mysql_query('DELETE FROM table WHERE id NOT IN(' . implode(',', $array) . ')');
the above exmaple assumes:
1. you are using mySQL
2. the table is called "table"
3. the primary key field of "table" is called "id"