I’m using the following SQL query:
SELECT * FROM Articles WHERE Name = 'Name' AND Column = 'Column'
And I’m receiving the following error:
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 ‘Column = ‘Column’ LIMIT 0, 30′ at line 1
I see no syntax error whatsoever. What is the problem?
Columnis a reserved word so you need to encapsulate it between ` chars: