我有以下查询
'''SELECT %(t1)s.*, %(t2)s.id, %(t2)s.street
FROM %(t1)s, %(t2)s
LEFT OUTER JOIN %(t2)s
ON %(t2)s.id = %(t1)s.location_id
''' % { 't1' : 'table1', 't2' : 'table2' }
我尝试使用LEFT OUTER JOIN %(t2)s t2alias ON t2alias.id = ...
但无济于事。相反,我得到一个1054, "Unknown column
. 我错过了什么?
谢谢