CODE (SQL):
скопировать код в буфер обмена
скопировать код в буфер обмена
- SELECT * FROM table_product
- LEFT JOIN table_product_to_product ON
- table_product_to_product.id_product_one!=:id_articul AND table_product_to_product.id_product_two!=table_product.id
- WHERE table_product.parent=0 AND table_product.model LIKE :search