The latest version of Dreamweaver broke the build SQL statement logic when using the "SELECT" and "WHERE" buttons... that is a known issue that either Adobe will fix or we will have to rewrite in a future version.
If something works on one machine and not the other it is probably a difference in the Site definition for the testing server. That is the information Dreamweaver uses to connect to the database and since the pages are presumably the same it is the likely location for the different setting causing the different experience.