removed console.log statement from selector.js
fixed incorrect rais table joins