Module: statistic (4.0.22) Class: CGuest File: /home/siteburo/data/www/siteburo.ru/bitrix/modules/statistic/classes/mysql/statistic.php Function: GetLastByID Line: 3451 MySQL Query Error:
SELECT
G.ID,
G.FAVORITES,
U.ID as LAST_USER_ID,
A.ID as LAST_ADV_ID,
if(to_days(curdate())=to_days(G.LAST_DATE), 'Y', 'N') LAST
FROM b_stat_guest G
LEFT JOIN b_stat_adv A ON A.ID = G.LAST_ADV_ID
LEFT JOIN b_user U ON U.ID = G.LAST_USER_ID
WHERE G.ID='0'
[Table './siteburo_ruweb/b_stat_guest' is marked as crashed and should be repaired]