why does my mysql does not accept subquery like this: SELECT LastName FROM customer WHERE CustId = (select CustId from orders);
mysql prompt this message: YOU HAVE AN ERROR IN YOUR SQL SYNTAX. CHECK THE MANUAL THAT CORRESPONDS TO YOUR MYSQL VERSION FOR THE RIGHT SYNTAX TO USE NEAR select CustId from orders) AT LINE 1
I am using version 4.0.16-nt
thanks for help.