SELECT `qty`+`qty_msk`-`rez_minsk`-`rez_msk` as `qt`,`qty`-`rez_minsk` as `qt_minsk`, `qty_msk`-`rez_msk` as `qt_msk`,`modx_tmc`.`unit`,`modx_tmc`.`stock_status`,`modx_tmc`.`will`,`modx_tmc`.`status_tov`,`packing` FROM `modx_tmc` LEFT JOIN `modx_site_content_sklad` ON `modx_site_content_sklad`.`sku`=`modx_tmc`.`sku` WHERE `modx_tmc`.`sku`=svetotehnika
SELECT `qty`+`qty_msk`-`rez_minsk`-`rez_msk` as `qt`,`qty`-`rez_minsk` as `qt_minsk`, `qty_msk`-`rez_msk` as `qt_msk`,`modx_tmc`.`unit`,`modx_tmc`.`stock_status`,`modx_tmc`.`will`,`modx_tmc`.`status_tov`,`packing` FROM `modx_tmc` LEFT JOIN `modx_site_content_sklad` ON `modx_site_content_sklad`.`sku`=`modx_tmc`.`sku` WHERE `modx_tmc`.`sku`=svetotehnika