This question already has an answer here:
- A MySQL query with 'ciphers' vs without 2 answers
- Mysql reserved keywords 2 answers
Excavating the reserved word in the sql query
SELECT * FROM localhost_mdl_35.mdl_logstore_standard_log WHERE userid = 2 AND action = 'create';
action is a reserved word and is giving error