次のクエリが失敗する理由を誰かが指摘できますか?SQLクエリは正しく構築されていますが、1064エラーを返します
SELECT
references_translations.language_id,
references_translations.active,
references_translations.title,
references_translations.slug,
references_translations.body,
references_translations.seo_title,
references_translations.seo_description,
references.*
FROM (references)
INNER JOIN references_translations ON references_translations.reference_id = references.id AND references_translations.language_id = 'nl'
WHERE `references_translations`.`active` = 1;
このクエリが失敗し続ける理由はわかりません。私のテーブル名またはカラム名のいずれかがMySQLによって予約されているかどうかを見つけることができませんでした。
正しい方向へのポインタがあれば幸いです。前もって感謝します。
*イーヘッドスラップ*私はそれを知っていた!ありがとう – SolidSmile
@ SolidSmile:私たちはすべてそれをやった!テーブルや列名に予約語がある場合でも、バックティックを使用するための教訓を学びました。実際には、私はいつも厳しく非難していますが、私は決して諦めませんでした。 – Shef