SELECT CASE ISNULL(file_format) WHEN 1 THEN file_format ELSE '' END;
FROM user_directory WHERE user_id=32
The code above returns error: Unknown column 'file_format' in 'field list'
even though the column IS in the table and populated for that user_id.
What am I doing wrong?