I am trying to extract out a query that needs to access a polymorphic association table in SQL twice (I need to JOIN it on both \'types\')
Here is the structure for t