The second recordset (copy and paste into the repeat region of the first)
<?php
$rs_photos2 = new WA_MySQLi_RS("rs_photos2",$connstake,0);
$rs_photos2>setQuery("SELECT * FROM photos WHERE photos_description = ?");
$rs_photos2->bindParam("s", "".($rs_photos1->getColumnVal("photos_description")) ."", "-1"); //currentCategory
$rs_photos2->execute();
?>