MySQLでエラーが発生しました。
SELECT
takken_q.no,
mondai.year,
mondai.question,
limb,
mondai.q_big,
q_small,
answer,
diversion,
mondai.statistics,
mondai.ans,
number1,
number2,
past,
extra,
theme,
mondai.cate_big,
law1,
law2,
law3,
law1_2,
law2_2,
law3_2,
law1_3,
law2_3,
law3_3,
law1_4,
law2_4,
law3_4,
law1_5,
law2_5,
law3_5,
law_ex1,
law_ex2,
law_ex3,
law_ex1_2,
law_ex2_2,
law_ex3_2,
law_ex1_3,
law_ex2_3,
law_ex3_3,
law_ex1_4,
law_ex2_4,
law_ex3_4,
law_ex1_5,
law_ex2_5,
law_ex3_5,
cate_small2,
takken_q.cate_small
FROM mondai,takken_q
where takken_q.id = and mondai.id = and takken_q.code = mondai.code and takken_q.no=5066
LIMIT 1
1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'and mondai.id = and takken_q.code = mondai.code and takken_q.no=5066
LIMIT 1' at line 52