#SNAP-7223 Add sphinx_association_types and check this before hitting the database