It must not be returning any results. Are you sure the state column references are correct?
I'd probably add this to debug after the execute() line:
var_dump($Recordset2);
That might help you determine why there are no results returned and what is wrong with your SQL.