SELECT SQL_CALC_FOUND_ROWS TTrans.* FROM `TTrans` INNER JOIN TGoodstorgmarks as t ON t.id_1c = TGoods.torgmark WHERE `TTrans`.`id` NOT IN ('43023', '35683', '35049', '48674', '47619', '47620', '47621', '47622', '47625', '47639', '47641', '47643', '47654', '47655', '47659', '47665', '47671', '47672', '47675', '47678', '47682', '47683', '47684', '47685', '47686', '47687', '47690', '47700', '47701', '47711', '47712', '47720', '47721', '47722', '47723', '47726', '47727', '47731', '47732', '47736', '47738', '47739', '47740', '47741', '47742', '47743', '47754', '47755', '47756', '47757', '47758', '47760', '47762', '47763', '47764', '47769', '47770', '47771', '47772', '47773', '47776', '47777', '47784', '47786', '47787', '47791', '47794', '47795', '47796', '47797', '47798', '47799', '47800', '47801', '47802', '47803', '47805', '47806', '47807', '47808', '47809', '47810', '47811', '47812', '47817', '47818', '47821', '47823', '47824', '47825', '47826', '47827', '47828', '47832', '47833', '47834', '47835', '47836', '47896', '47898', '47899', '47913', '47915', '47916', '47917', '47919', '47920', '47921', '47922', '48676', '49249', '49252', '49255', '49257', '49259', '49260', '49268', '49282', '49285', '49289', '49296', '49821', '49822', '49823', '49824', '49825', '49826', '49833', '51483', '51485', '51486', '51488', '54220', '54221', '54231', '54238', '54239', '54556', '54557', '54558', '54559', '56753', '56754', '56775', '56788', '25215', '32638', '33063', '25161', '32108', '69314', '69315', '69316', '69317', '69318', '69319', '32116', '37968', '33060', '26970', '40571', '35071', '35047', '32397', '22719', '35693', '35069', '35681', '32392', '28757', '69320', '44368', '26971', '40320', '32115', '44369', '33061', '25156', '35072', '32114', '35050', '25193', '43022', '30696', '30697', '30683', '33064', '32393', '40570', '26969', '32111', '43024', '32633', '33057', '35070', '30698', '32394', '25197', '25196', '43107', '40569', '32636', '35680', '26967', '26972', '32119', '33059', '32109', '28756', '26968', '35048', '32117', '33058', '32635', '28760', '33062', '35682', '28759', '69350', '26973', '35068', '32110', '32112', '33056', '32634', '69351', '32396', '28758', '35678', '30682', '35074', '35073', '32113', '32118', '28761', '32637', '32395', '35679') AND `TTrans`.`visibility` = '1' AND `TTrans`.`accepted` = '1' AND TTrans.`parent`=12 ORDER BY (t.alias = 'kitaj_md') DESC, TTrans.`updatetime` DESC LIMIT 0,33

Unknown column 'TGoods.torgmark' in 'on clause'