Class: CRatings File: /var/www/domains/rostransport.com/bitrix/modules/main/classes/mysql/ratings.php Function: AutoAssignGroup Line: 614 MySQL Query Error:
INSERT INTO b_user_group (USER_ID, GROUP_ID)
SELECT
rr.ENTITY_ID, '4'
FROM
b_rating_results rr
LEFT JOIN b_user_group ug ON ug.GROUP_ID = 4 AND ug.USER_ID = rr.ENTITY_ID
WHERE
rr.RATING_ID = 4
and rr.CURRENT_VALUE >= 2
and ug.USER_ID IS NULL[Deadlock found when trying to get lock; try restarting transaction]