Re-enable SQLite query tests

The issue is caused by double prefixing and non-prefixing of inner joints during the `select` by MW's DB interface.