[ticket/11224] SQL cache destroy does not destroy queries to tables joined

https://tracker.phpbb.com/browse/PHPBB3-11224

ascraeus: https://github.com/phpbb/phpbb/pull/3016

PHPBB3-11224