Subselect no CodeIgnater

PHP

27/12/2016

Error Number: 1064

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.`CPFCNPJMATRIZ) TOTAL_GERAL from operacao op INNER JOIN agente ag ON ag`.`CPFCN' at line 1.

estou criando um query com subselect e esta dando erro, quando jogo a query no bco direto ele roda, poderiam me ajudar?

Sou iniciante no Codeignater
Avelar

Avelar

Curtidas 0
POSTAR