akul, Wednesday, May 01, 2002, 6:30:06 AM, you wrote: a> SELECT countries.*, lnk0.Value AS fraudIndex, lnk1.Value AS enabled a> FROM o as countries LEFT JOIN l_TINYINT AS lnk0 ON a> lnk0.FID=countries.ID AND lnk0.TID=55 LEFT JOIN l_TINYINT AS lnk1 ON a> lnk1.FID=countries.ID AND lnk1.TID=57 WHERE ((enabled=1) AND a> countries.ParentID=46) ORDER BY Name
a> And this is result: a> Unknown column 'enabled' in 'where clause' a> Why? :( a> 'enabled' is not keyword. a> Columns aliases seems to be ignored here. You can't use aliases in WHERE clause. Look at: http://www.mysql.com/doc/P/r/Problems_with_alias.html -- For technical support contracts, goto https://order.mysql.com/ This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php