Table 'armdatin_afpm.media_files' doesn't exist
Query is:
SELECT
files.file_id, files.file_name, files.file_path,
files_content.file_content_id, files_content.file_description,
languages.lang_id, languages.code
FROM media_files
JOIN files AS files ON media_files.file_id = files.file_id
JOIN files_content ON files_content.file_id = media_files.file_id AND files_content.lang_id = 1
LEFT JOIN languages ON languages.lang_id = files_content.lang_id
WHERE media_files.media_id = 4 AND media_files.file_type = 1
ORDER BY files.file_id DESC