Hallo! I have table authors with columns (is_active is true or false): ID | name | is_active I have sql statement SELECT * FROM `authors` WHERE id = ( SELECT MAX( id ) FROM `authors` ) AND is_active=1 PHP: And I expect to get the name with MAX ID and is_active=1 (true) But MySQL returned an empty result set... Where is the error? Thanx!