Yes, that is the way you would add the ID to the page. The error is occuring because the SQL is too complicated for Dreamweaver to interpret correctly.
To display the product id, the correct syntax would be to use:
<?php echo $row_WADAProducts['ProductID']; ?>