Steps to replicate the issue (include links if applicable):
Have defined:
{{#get_db_data:
db=test
|from=t1
|where=t1.c1='test'
|join on=t1.c1=t2.id
|data=t1c1=t1.c1
}}What happens?:
Generated query is
SELECT t1.c1 FROM t1 WHERE t1.c1='test'
What should have happened instead?:
Query should include JOIN clause
SELECT t1.c1 FROM t1 JOIN t2 ON t1.c1=t2.id WHERE t1.c1='test'
Software version (skip for WMF-hosted wikis like Wikipedia):
3.1 (REL1_39), 3.2, git master.
Other information (browser name/version, screenshots, etc.):
Used with Mediawiki 1.39, MariaDB 11, PHP 8.1.