You’ve just run a query in MySQL and it tells you "Query OK, 1 row affected, 1 warning (0.01 sec)" but not what the warning is, so how do you know what the warning was for the query that was just run?
via Chris Hope’s LAMP Blog
How to show a MySQL warning that just happened