One of the files in an extension after the patch SUPEE-6788 is showing an issue related to APPSEC-1063.
$collection->join('catalog/product', 'product_id=`catalog/product`.entity_id')
->addFieldToFilter('`catalog/product`.type_id', array('in' => array('simple', 'virtual', 'downloadable')));
How do I need to change this code to make it compatible?