you need to use a join query when trying to get data from 2 tables:
http://www.w3schools.com/sql/sql_join.asp
your _WADApg1_gallery_images recordset is not using a join query so will not be able top properly return related data
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.