ActiveRecord joins and where

Hi Guys,

Its more like a mysql question. I have posted the question on

Thanks in Advance

I may be wrong but I think it more likely you will get help here if
you post the problem here. Otherwise we have to follow your link,
copy the text, paste it in here so that there is some context and add
our answer.

Even better wait till you see whether you get an answer there before
trying here so we are not wasting our time.