The "horrible" structure... I am using a program called Machform to create the form that enters the info into the database. This program gives the horrible names you are noting. And yes, they are hard to work with, especially since my form has 65 fields.
I added the WHERE as you had it (WHERE id=".$id

, but I got this error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
When I change it to WHERE ap_form_1.id, I do not get the error message, but I still only get the first record from the database.