Small fix on SQL request