Hi everyone
I have my query but it doesn't work and I know why but I'm asking you if you can help me, I will explain. Requests aren't logic, but it's not the question.
SELECT (5+5) AS result FROM house WHERE id = (5+5); [WORK]
SELECT (5+5) AS result FROM house LIMIT (5+5); [#1064 - You have an error in your SQL syntax]
SELECT (5+5) AS result FROM house WHERE id = result; [#1054 - Unknown column 'result' in 'where clause']
Do you have any idea to fix that? I understand errors, but I'm asking if I can do with other way.
Thank you.