This is the mysql code written for ruby on rails application
Model.find_by_sql(["SELECT * FROM domainurls WHERE domaindetail_id = ?",@id ,"and count IN (SELECT Max( count ) FROM domainurls WHERE domaindetail_id =?",@id,")"])
It gives me error
"error is: wrong number of arguments (0 for 1)"
Can anybody have idea what's wrong in the code?