Unknown column 'page' in 'where clause' Query is: SELECT pages.page_id, pages.parent_id, pages.hidden, pages.num, pages.page_code, pages.dynamic_page_id,pages.changeable, pages_content.page_name, pages_content.page_title, pages_content.page_content, languages.lang_id, languages.code FROM pages JOIN pages_content ON pages_content.page_id = pages.page_id AND pages_content.lang_id = 3 LEFT JOIN languages ON languages.lang_id = pages_content.lang_id WHERE pages.page_id = page