Database error: Invalid SQL:
SELECT
DATE_FORMAT(n.date,'%d.%m.%Y') as date,n.id,l.title,l.description
FROM
_news as n
LEFT JOIN
_news_lang as l
on
l.newsid = n.id
and l.langid = '1'
WHERE n.id = ref.outcontrol and
n.section = 1
ORDER BY
n.date DESC
MySQL Error: 1054 (Unknown column 'ref.outcontrol' in 'WHERE')