I have a problem with the Magento product collection because I have some additional product attributes and use the general method of getting the product collection, such as: B.: Mage :: getModel (& # 39; catalog / product & # 39;) -> getCollection (); in one of my functions. Select an attribute with & # 39; * & # 39; that contains all the attributes.
Another thing the Flat Catalog product is set to Yes. Everything works fine when I print the query with getSelect (). This shows that all data comes from the catalog_product_flat_1 Table.
But if I work with Ajax in the same way (function) in my other controller, the query does not get data from a flat table. It displays EAV tables with joins and shows me errors like:
ERROR 1054: Unknown column 'capacity' in 'field list'
Why this problem with Ajax? Any suggestions?