still debugging errors in query of comments

var query = "q=SELECT * from comments where associd = '+rampID+' AND
association = 'R' &api_key="+cartoDBkey;

maybe cartodb expects all fields in comments to be text