Changed htaccess to use local environment.  This will need to be changed back.
Added table names to field names due to bug in query.