Q:

Mysql how to filter trough field that name is mysql keyword?

I have a mysql table where one of column has name "from" the same as mysql keyword.
How do I apply such query:
select * from some_table where from = 12;

A:

You have to use backticks on mysql keyword like tableName, fieldName etc.
SELECT * FROM `some_table` WHERE `from` = 12;

