1146 - Table 'ipostal1_yaelr.legal_entity_documents' doesn't exist

select distinct stores_country_id from postal_stores ps WHERE (display_on_signup_list = '1') AND (allow_signup = '1') AND EXISTS ( SELECT 1 FROM stores_tos_history sth JOIN legal_entity_documents led ON led.id = sth.legal_entity_documents_id WHERE sth.stores_id = ps.stores_id AND led.legal_entity_id = ps.legal_entity_id AND led.document_type = 'tos-locations') AND (stores_date_activated != '0000-00-00') AND (stores_date_deactivated = '0000-00-00' or stores_date_deactivated IS NULL)

[TEP STOP]