I've spend good hours trying to fix this one.
SELECT *
FROM `users`
WHERE `IP` = `123.231.213.132`
What is wrong with this?
#1054 - Unknown column '123.231.213.132' in 'where clause'
The AS command is used to rename a column or table with an alias. An alias only exists for the duration of the query.
It means that the request currently is not active because it is waiting on a resource. The resource can be an I/O for reading a page, A WAIT it can be communication on the network, or it is waiting for lock or a latch. It will become active once the task it is waiting for is completed.
You should not use backticks with column values. you have to use either single or double quotes otherwise mysql will consider that value as a column name.
SELECT *
FROM `users`
WHERE `IP` = '123.231.213.132'
Use single quotes rather than backtick characters for `123.231.213.132``
SELECT * FROM `users` WHERE `IP` = '123.231.213.132'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With