irip
Гуру форума
- Регистрация
- 12 Авг 2006
- Сообщения
- 540
- Реакции
- 55
- Автор темы
- #1
Выдает ошибку на icms 2.6 следующего содержания:
что-бы это могло быть?
Код:
Unknown column 'u.is_online' in 'field list'
SELECT i.*, u.avatar as user_avatar, u.nickname as user_nickname, u.karma as user_karma, u.is_online as is_online, u.status_text as statu, DATE_FORMAT( u.date_log, '%d.%m.%Y' ) as date_log, DATE_FORMAT( u.date_reg, '%d.%m.%Y' ) as date_reg, IFNULL(c.name, '') as city_name, IFNULL(c.id, 0) as city_id, COUNT(r.id) as portfolio, uc.name as cname, uu.name as uname
FROM cms_freelancers i
INNER JOIN cms_users as u ON u.id = i.user_id
LEFT JOIN cms_geo_cities as c ON c.id = u.city
LEFT JOIN cms_freelancers_proekt as r ON i.user_id = r.user_id
LEFT JOIN cms_freelancers_cats as uc ON uc.id = i.cat_id
LEFT JOIN cms_freelancers_uslugi as uu ON uu.id = i.uslugi
WHERE (i.tupe = 'z') AND (i.tupe = 'z')
GROUP BY i.id
ORDER BY u.karma desc
LIMIT 0, 10
что-бы это могло быть?