What is wrong with this query?
SELECT
clientes.idClientes,
clientes.nome,
clientes.bloqueado,
planosclientes.idPlanos,
planos.nome,
enderecos.bairro,
enderecos.cidade
FROM
planosclientes INNER JOIN clientes ON planosclientes.idClientes = clientes.idClientes AND
planosclientes INNER JOIN planos ON planosclientes.idPlanos = planos.idPlanos AND
planosclientes INNER JOIN enderecos ON planosclientes.idPlanosClientes = enderecos.idPlanosClientes
WHERE
clientes.bloqueado = 's' AND
enderecos.tipoEndereco = 'i'
You are giving the following error:
Unknow colunm 'planosclientes' in on clause.
But there is no 'customer plans' column in the on clauses. What you have are 'flat' tables.
What error is this?