fixed: related links not loading, invalid sql statement