I am trying to make a mysql query to select multiple tables and LEFT to join them, however they all have the same column name names, etc. I want to rename all fields this way. so I tried the following query
SELECT mod_backup_accounts . * AS account . * , mod_backup_subscriptions . *
FROM `mod_backup_accounts`
LEFT JOIN `mod_backup_subscriptions` ON `mod_backup_accounts`.subscription_id = `mod_backup_subscriptions`.package_id
However, mod_backup_accounts . * AS account . *makes him fail, is there any way to do this? so these will be the names as the account.
source
share