Class: CRatings
File: /home/bitrix/www/bitrix/modules/main/classes/mysql/ratings.php
Function: BuildRating
Line: 82
MySQL Query Error: UPDATE b_rating_results RR, ( SELECT ENTITY_TYPE_ID, ENTITY_ID, CURRENT_VALUE, @nPos:=@nPos+1 as POSITION FROM b_rating_results, (select @nPos:=0) tmp WHERE RATING_ID = 4 ORDER BY CURRENT_VALUE DESC ) as RP SET RR.PREVIOUS_POSITION = IF(RR.CURRENT_POSITION = RP.POSITION, RR.PREVIOUS_POSITION, RR.CURRENT_POSITION), RR.CURRENT_POSITION = RP.POSITION WHERE RR.RATING_ID=4 and RR.ENTITY_TYPE_ID = RP.ENTITY_TYPE_ID and RR.ENTITY_ID = RP.ENTITY_ID [[1213] Deadlock found when trying to get lock; try restarting transaction]

DB query error.
Please try later.