My script create sql query with joins, for this it using Phalcon\Mvc\Model\Query\Builder, for each table column script add table name alias, if I want add some filtering in where, script add table alias to this column too automatically, but if in one query two table have column with the same name, like id, name and I want to filtering by this column I have error like 'Column 'id' in where clause is ambiguous', but if I log sql query before execute it query looks like "Select table.id, table.name From table join left tabe2 where table.id = '1' and table.name = 'test';" but in mysql query log this query looks different "Select table.id, table.name From table join left tabe2 where id = '1' and name = 'test';" and of course I have error because column with name id or name have table and table2.
Why Phalcon\Mvc\Model\Query\Builder or maybe after execute method query changing? and how I can switch off this?