Thanks a lot Andre, you are taking me by hand into the world of programming... The SQL generated was:
PHP Code:
SELECT oqc_product.id ,oqc_product_cstm.numteclado_c,oqc_product_cstm.fonte_c,oqc_product_cstm.entrega_c,oqc_product_cstm.vga_c,oqc_product_cstm.ethernet_c,oqc_product_cstm.usb_c,oqc_product_cstm.zigbee_c,oqc_product_cstm.garantia_c,oqc_product_cstm.datafab_c,oqc_product_cstm.desccpu_c, oqc_product.name , jt0.name accounts_oqc_product_name, jtl0.accounts_oqctaccounts_ida accounts_oqctaccounts_ida, jt1.name relatedcategory , oqc_product.relatedcategory_id , CONCAT(IFNULL(jt2.first_name,''),' ',IFNULL(jt2.last_name,'')) personincharge , oqc_product.assigned_user_id FROM oqc_product LEFT JOIN oqc_product_cstm ON oqc_product.id = oqc_product_cstm.id_c LEFT JOIN accounts_oqc_product_c jtl0 ON oqc_product.id=jtl0.accounts_oqqc_product_idb AND jtl0.deleted=0 LEFT JOIN accounts jt0 ON jt0.id=jtl0.accounts_oqctaccounts_ida AND jt0.deleted=0 AND jt0.deleted=0 LEFT JOIN oqc_category jt1 ON oqc_product.relatedcategory_id = jt1.id AND jt1.deleted=0 LEFT JOIN users jt2 ON oqc_product.personincharge_id = jt2.id AND jt2.deleted=0 where (oqc_product.catalog_id like '609502e8-4884-8ca5-7b3e-49f7396733b8%') AND oqc_product.deleted=0 ORDER BY oqc_product.name ASC
The error is in the end, this command:
(oqc_product.catalog_id like '609502e8-4884-8ca5-7b3e-49f7396733b8%') AND
It should be blank there, no rule to apply to select a product catalog.
Ok, now how do I change the code (which file) to erase that line from the select?
Regards
Bookmarks