Fix SQL request (thanks Yannick)