You cant have two qurystring variables with the same name. each one needs to have a unique name.
In the advanced view of the Dreamweaver Recordset window, you should already have the first condition set up as an example.
You will need to add another condition to the recordset to filter the other column, the adobe help article I pointed you to will explain how to do this.