Были обнаружены ошибки: класс MyException

Запрос:
SELECT C.country_id, C.name as country, H.html, A.name as surname, A.author_id, A.firstname, A.secondname, P.partner_id, P.name as pname,CE.cust_source FROM _countrys C
LEFT JOIN _country_exts CE ON (CE.country_ext_id=C.country_id)
LEFT JOIN _html H on(H.tbl_id=C.country_id AND H.tbl="-9101001")
LEFT JOIN _authors A ON (A.author_id=CE.cust_a_id)
LEFT JOIN _partners P ON (P.partner_id=CE.cust_p_id)
WHERE C.country_id=phonecodes AND C.status=1 LIMIT 0,1


Сообщение: Unknown column 'phonecodes' in 'where clause'



Файл: /var/www/vhosts/fashiontravel.ru/www/custom.xhtm
Строка: 56
Функция: item

Файл: /var/www/vhosts/fashiontravel.ru/www/custom.xhtm
Строка: 56
Функция: item

Файл: /var/www/vhosts/fashiontravel.ru/www/engine1/modules/custom.inc
Строка: 123
Функция: doit