Invalid column name 'ham'.

SELECT k_id FROM d_vacancies WHERE k_id = ham