SELECT var1,var2,var3,table_name
FROM table1 LEFT JOIN table_name on var3=table_name.id
Meaning I want to dynamically left join table, depending on value of table_name
from table1
, since var3
is taken from there.
But the above query results in
table table_name does not exist
My mistake of mysql limitation?